Hi! I want to render partial which depends on form builder "f". How can
I do it using AJAX+JQuery

Files
#new.html.haml
%h1
  New order
- form_for(@order) do |f|
  = f.error_messages
  %div#partial
    = render "#[email protected]_step}_step", :f => f

#create.js.erb
$("#partial").empty();
$("#partial").append
    ( <%= render "#[email protected]_step}_step", :locals => {:f=>f}%>);

The error
  undefined local variable or method `f' for ActionView::Base
-- 
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