hello
in a custom view i have 3 different lists e.g.
= render :active_scaffold => 'companies'
= render :active_scaffold => 'customers'
= render :active_scaffold => 'products'
they can't be nested.
in my customer_controller i define:
def condition_for_collection
if params[:id]
#do this
else
# do that
end
Now... the params are not passed to customer_controller.
i tried to re-pass
= render :active_scaffold => 'customers', :params=>params
as well as
= render :active_scaffold => 'customers', :id=>params[:id]
and
= render :active_scaffold => 'customers', :params=>{:id=>'123'}
as i found somewhere in this group but it won't take it.
Strange to see m that there is a params[:id] {:id=>nil} in the
customer_controller.
if i inspect params inside the view it's all there.
My AS-Version is of Nov. 09.
How can i pass them to all the controllers involved ?
thx in advance :)
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
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/activescaffold?hl=en.