search for: a_form

Displaying 2 results from an estimated 2 matches for "a_form".

Did you mean: _form
2013 Feb 10
0
Nested attributes doesnt get updated
...orm'',:locals => {:form => f} %> <p><%= f.link_to_add "Add Request", :w_a_details %></p> <div class="actions"> <%= f.submit %> </div> <% end %> *w_a_details/_form.html.erb *<%= form.fields_for :w_a_details do |a_form| %> <%=a_form.text_field :description %> <%=a_form.link_to_remove "Remove" %> <% end %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop r...
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential_listings#new undefined local variable or method `foo'' for #<ActionView::Base: 0x3fb53f8> I am trying to call the variable ''foo'' in a partial called _attachment.html.erb, which is nested in