# Error al importar XenForo (config/application.rb:2)

**URL:** <https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049>\
**Category:** Product Support\
**Created:** [12 Septiembre, 2016 23:47 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049 "2016-09-12T23:47:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Padraig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/padraig/32/121553_2.png) [@Padraig](https://meta.discourse.org/u/Padraig)\
**Post date:** [13 Septiembre, 2016 06:17 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049/4 "2016-09-13T06:17:13Z")

</div>

Hey guys, thanks for getting back to me on this issue!

> [@mpalmer](#):
>
> That sounds like you don’t have all the gems installed; what does bundle show railties say?

```plaintext
root@titan-app:/var/www/discourse> bundle show railties
Could not find gem 'railties'.

```

I will admit, I installed the `railties` gem and then re-ran the above command and got the same result.

> [@riking](#):
>
> You’re not using the discourse account. Run cat `which rails` and copy the sudo command line out of that file.

```plaintext
root@titan-app:/var/www/discourse> cat `which rails`
#!/usr/local/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'railties' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

version = ">= 0.a"

if ARGV.first
  str = ARGV.first
  str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
  if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
    version = $1
    ARGV.shift
  end
end

gem 'railties', version
load Gem.bin_path('railties', 'rails', version)

```

(Note, I got the same result under the ‘discourse’ user)

Maybe I botched something?

---

_[View the full topic](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049)._
