Hi All,
I have a typical design.
class Project< ActiveRecord::Base
has_many :shipping
end
class Shipping< ActiveRecord::Base
has_many :sample
end
class Sample< ActiveRecord::Base
belongs_to :product
end
class Product< ActiveRecord::Base
belongs_to :project
end
While i am in project edit screen. In a view file i am rendering
<%= render :active_scaffold => 'shipping', :constraints =>
{:project_id => @record.id } %>
IN shipping "create" screen
sample is coming as "create another" interface. But i want to filter
the product drop down so that it can show the product which is
relevant to current project only not all product.
HOw to do this ????
Thanks 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
-~----------~----~----~----~------~----~------~--~---