Ruby on Rails Friday, May 28, 2010

On May 28, 3:25 pm, Steve Russo <li...@ruby-forum.com> wrote:
> I've been spending a great deal of time chasing this problem. Hopefully
> someone sees something obvious I'm doing wrong. Basically anytime I try
> to call fields_for from an RJS file or within a partial in the RJS file,
> I get the following error. My goal is simply to load a partial into a
> div. The fields in this partial require fields_for though. And that's
> where the problem lies.
>
> ActionView::TemplateError (undefined method `fields_for' for
> "#<ActionView::Helpers::FormBuilder:0x944ea28>":String) on line #3 of

This is the hint: @form is not a form builder. it's a string
containing the text "#<ActionView::Helpers::FormBuilder:0x944ea28>"

Fred

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

No comments:

Post a Comment