It is working for me now and even better only the detail records
associated with my master are showing up. That took a little more
code, but not bad at all.
If I call render_component from within a view, what would be the
appropriate way to have that call pass along any necessary data to
the controller that needs it? :params => {“var” => @needed_instance_var} ??
If I call render_component from within a view, what would be the
appropriate way to have that call pass along any necessary data to the
controller that needs it? :params => {“var” => @needed_instance_var} ??
Yes.
–
We develop, watch us RoR, in numbers too big to ignore.
If your component happens to be generated from the ajax_generator then
I found that I needed to catch the param ASAP in the controller and
save it out as a session variable.
Then the list / new /create methods could retrieve it from the session
variable.
ie. session[:var] = params[:var] if I recall the syntax correctly