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. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-May-05 07:01 UTC
Re: is not allowed as an instance variable name error
On 4 May 2011, at 23:10, John Merlino <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- searchlogic
- searchlogic is_any needs to be switched to equals_any
- Should AR set default values obtained from the schema?
- Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7
- Unable to find the image path via file system using the paperclip plugin through the get method