On 4 May 2011, at 23:10, John Merlino <[email protected]> wrote:

> 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

>    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.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to