in your shipping helper you can put this method
def product_form_column(record, input)
end
And this method is what populates that drop down for you, so you could over
ride it here, i.e.
def product_form_column(record, input)
select record, input, Product.find(:all, :conditions => {:project_id =>
current_project.id}).collect{|p| [p.name, p.id])
end
or something along those lines.
On Mon, Feb 16, 2009 at 12:35 PM, zeal <[email protected]> wrote:
>
> HI
>
> Basically i want to overide "Create another" subform. So that i can
> put my filterd proudct in drop down.
>
>
> Thanks
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---