I have this same issue :/
On Monday, January 23, 2012 9:20:37 PM UTC-6, emc_lab wrote:
>
> Here is code in form.html.erb for partial view. Local var :sid was
> defined as the id of the record and it should be passed into the
> partial view standards.html.erb as a local var.
>
> <% @rfq.standards.each do |r| %>
> <p><%= render :partial => 'standards', :locals => { :f =>
> f, :sid => r.id } %></p>
> <% end %>
>
> Here is the standards partial view:
>
> <%= f.association :standards, :collection =>
> Standard.active_std.all(:order => 'name'), :label_method
> => :name, :value_method => :id, :prompt => "Choose std", :label =>
> "standard:", :include_blank => true, :selected => sid %>
>
> When standards rendered, there is an error saying that var or method
> not defined. Any thoughts about the problem? thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/pL_m7J8GWE4J.
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.