I've been searching all day for a way to make this work and I've found
bits and piece but I can't seem to put it all together. How do I
filter a table dynamically using a drop down box?
I've seen references to conditions_for_collection and maybe that's the
direction I need to go any help would be greatly appreciated.
--- index.html.erb ----
Drop Down:
<%= select("promotion", "promotion_type_id", PromotionType.find
(:all).collect {|p| [p.promotype, p.id]}) %>
Active Scaffold
<%= render :active_scaffold => 'promotion_spots', :constraints =>
{:account_id => @account.id}, :conditions => "promotion_type_id=#
{'promotion_promotion_type_id}" %>
I'm not sure how to link the drop down box to active_scaffold and have
the table reload the content dynamically.
Thank you for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---