is not allowed as an instance variable name error

Hey all,

I get error like this:

ActionView::TemplateError (`@content_for_details_view_builder__-626960428' is not allowed as an instance variable name) in app/views/shared/_details_view.haml:

    searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:75:in `fields_for'     searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:64:in `form_for'     app/helpers/builders_helper.rb:68:in `details_view'     /home/app-sptr/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'     app/other/restful_component.rb:488:in `new_html'     app/other/restful_component.rb:73:in `new'     app/other/restful_component.rb:72:in `new'     /home/app-sptr/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'     rack (1.1.2) lib/rack/head.rb:9:in `call'     rack (1.1.2) lib/rack/methodoverride.rb:24:in `call'     rack (1.1.2) lib/rack/lock.rb:11:in `call'     rack (1.1.2) lib/rack/lock.rb:11:in `synchronize'     rack (1.1.2) lib/rack/lock.rb:11:in `call'

I understand that when you use form_for, you cannot have an empty instance variable passed into the block. However, from the above backtrace, I can't tell where the root of problem is.

Thanks for response.

Hey all,

I get error like this:

ActionView::TemplateError (`@content_for_details_view_builder__-626960428' is not allowed as an instance variable name) in app/views/shared/_details_view.haml:

That - sign in the ivar name is bad. I'd look at your view at your builders_helper module first.

Fred