I am trying to deploy my Rails3.0 application on production server. There was many troubles before, but all of them solved. And now I have another.
There is a passenger error page’s text:
Error message:
uninitialized constant Formtastic::FormBuilder
Exception class:
NameError
Backtrace:
0 /home/ubuntu/.rvm/gems/ruby-1.9.2-p180@rails3.0/gems/client_side_validations-3.1.0/lib/client_side_validations/formtastic.rb 20 in `’
1 /home/ubuntu/projects/questroad/config/initializers/client_side_validations.rb 4 in 'block (2 levels) in ‘
2 /home/ubuntu/.rvm/gems/ruby-1.9.2-p180@rails3.0/gems/railties-3.0.7/lib/rails/engine.rb 201 in
3 /home/ubuntu/.rvm/gems/ruby-1.9.2-p180@rails3.0/gems/railties-3.0.7/lib/rails/engine.rb 200 in `each’
…
Google search results not helped me, and now I am here.
UPD:
Also if i try to run WEBrick server there was the same error.
UPD:
I try to comment “gem ‘client_side_validation'” line in Gemfile, and error is disappeared. But now i cant use this gem.
I experience the same issue but not on the production, i got this error in the development after doing a:
and then try to run my rspecs.
It seems that bundle update, installed client_side_validations 3.1.0 which seems to make problems ( … not sure why, I don’t have the time to analyze it atm), however using a fixed version in the Gemfile solved it:
hope it helps!