Ruby on Rails Tuesday, January 4, 2011

Downgrading Ruby 1.9.2 to 1.8.7 fixed the issue for me.

I tried creating a new CRUD via "rails generate scaffold test
name:string" and even creating a new object there failed.

Instead of determining root cause, and since I don't require 1.9.2, I
downgraded.

Since I am using RVM, I am able to downgrade to 1.8.7 on both my dev
machine and server in only 10 minutes. I had to change some gems
(e.g. ruby-debug19 to ruby-debug) in my Gemfile, then run "bundle
install" on my dev machine, check in the new gems into SVN, then "cap
deploy" to the server.

On the server, with RVM now set to 1.8.7 ( rvm install ruby-1.8.7; rvm
use --default ruby-1.8.7; rvm use default ) I installed the passenger
gem ( gem install passenger ) and recompiled the apache module
( passenger-install-apache2-module ) and then had to reset my
httpd.conf file with the new setting for passenger, as specified by
the output to the passenger-install-apache2-module.

I hope this helps.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment