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.
When standards rendered, there is an error saying that sid was not
defined. I did extensive search online about how to use :locals and
could not figure out what causes error. Any thoughts about the error?
Thanks.
Not really, strange …
Is f passed correctly?
What happend if you try passing different objects as sid (:sid => 1
e.g.).
Does it work in that case?
I assume your partial is named correctly _standards.html.erb
Just a few random checks that may unveil the issue …
When standards rendered, there is an error saying that sid was not
defined. I did extensive search online about how to use :locals and
could not figure out what causes error. Any thoughts about the error?
Can you post the full error message please?
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.