0
votes

I followed this tutorial to successfully install Rails 3.0.11 with ruby 1.9.3, passenger, nginx and rvm. But when I tried to configure rails 3.2.2 in similar fashion, I got lots of errors. The main issue is that only the contents in the public/ directory are accessible. I tried creating a Home controller with an index page, added 'root :to => "home#index"' to config/routes.rb and deleted public/index.html. What I'm get is 'something went wrong' page.

I tried precompiling assets, but it didn't help.

I'm using Ubuntu 10.04 for server. Please help me.

2

2 Answers

2
votes

Try these commands.

$ rake assets:precompile Compiles the assets

$ rake db:setup RAILS_ENV="production"

0
votes

In anyway try run following commands:

$> sudo apt-get update && sudo apt-get upgrade
$> rvm get head

and then

$> rake db:migrate RAILS_ENV=production