Steve Russo wrote:
> Marnen, my apologies on mispelling your name.
> 
> Given the flow of my code "Main html(view)->controller->RJS->rendered 
> partial", the error I recieve seems to be the result of the RJS file 
> calling a partial with form elements like "f.text_area" for example.

Can't the partial instantiate the FormBuilder?  In other words, why 
doesn't the partial contain the form_for call?

> When the form builder object "f" is not passed into the partial that is 
> rendered form the RJS file, I get the ActionView::TemplateError.
> 
> Are you saying to omit the form builder object "f" in the partial? Such 
> that it would read "text_area" rather than "f.text_area"?
>

No -- there's no such method.

> Would it still work when the HTML is inserted back into the main view 
> page?
> 
> I'm sorry if I'm not explaining well. I appreciate all the help I'm 
> getting.

You can't use a FormBuilder to rebuild part of a form AFAIK.  I'll 
admit, however, that I have very little use for RJS -- I usually prefer 
to write JavaScript directly.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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.

Reply via email to