Argh! Everything has been totally fine, then all of a sudden I started getting this error when I was doing a 'rake db:migrate' And I get the same thing when I try to restart the rails server.
rake aborted!
undefined method 'form_for' for module `ActionView::Helpers::FormHelper'
Confirmation that I'm running a current version: mm-MacBookPro:trunk mm$ rails -v Rails 2.3.5
None of my form_for's were added recently and they were working fine. I rebooted and reinstalled rails. What the heck could cause this?
Here's the --trace
** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method
form_for' for module
ActionView::Helpers::FormHelper' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers/action_view_mods.rb:174:inalias_method' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers/action_view_mods.rb:174:in
' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers/action_view_mods.rb:159:in<module:Helpers>' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers/action_view_mods.rb:41:in
' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers/action_view_mods.rb:1:in<top (required)>' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inblock in require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
new_constants_in' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/helpers.rb:2:in
' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
block in require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml/engine.rb:1:in<top (required)>' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inblock in require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
new_constants_in' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' /Users/mm/.gem/ruby/1.9.1/gems/haml-2.2.19/lib/haml.rb:40:in
' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
block in require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' /Volumes/Development/tc/app/trunk/vendor/plugins/haml/init.rb:5:inrescue in block in evaluate_init_rb' /Volumes/Development/tc/app/trunk/vendor/plugins/haml/init.rb:1:in
block in evaluate_init_rb' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin.rb:146:ineval' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin.rb:146:in
block in evaluate_init_rb' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin.rb:142:in
evaluate_init_rb' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin.rb:48:inload' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin/loader.rb:38:in
block in load_plugins' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin/loader.rb:37:ineach' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/rails/plugin/loader.rb:37:in
load_plugins' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/initializer.rb:348:inload_plugins' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/initializer.rb:163:in
process' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/initializer.rb:113:inrun' /Volumes/Development/tc/app/trunk/config/environment.rb:13:in
' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
block in require' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in' /Volumes/Development/tc/app/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' /Volumes/Development/tc/app/trunk/vendor/rails/railties/lib/tasks/misc.rake:4:inblock in <top (required)>' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in
call' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:inblock in execute' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in
each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:in
block in invoke_with_call_chain' /usr/local/lib/ruby/1.9.1/monitor.rb:190:inmon_synchronize' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:inblock in invoke_prerequisites' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:ininvoke_prerequisites' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:in
block in invoke_with_call_chain' /usr/local/lib/ruby/1.9.1/monitor.rb:190:inmon_synchronize' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:inblock (2 levels) in top_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:inblock in top_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2001:in
block in run' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in
run' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in<top (required)>' /usr/local/bin/rake:19:in
load' /usr/local/bin/rake:19:in `'