Re: [Rails] Locals does not pass in var in partial

2012-01-24 Thread Colin Law
On 23 January 2012 20:41, emc_lab wrote: > Hi everyone, > > Here is code in form.html.erb for partial view (controller rfqs). > 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 |

Re: [Rails] Locals does not pass in var in partial

2012-01-24 Thread Peter Vandenabeele
On Mon, Jan 23, 2012 at 9:41 PM, emc_lab wrote: > Hi everyone, > > Here is code in form.html.erb for partial view (controller rfqs). > 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.e

[Rails] Locals does not pass in var in partial

2012-01-24 Thread emc_lab
Hi everyone, Here is code in form.html.erb for partial view (controller rfqs). 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| %> <%= render :partial => 'standards', :lo