Displaying 1 result from an estimated 1 matches for "find_by_make".
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
...{:prompt => "-Select a Make First-"} %>
11. </div>
12. </p>
13. <p>
14. <%= f.submit ''Create'' %>
15. </p>
16. <% end %>
listings_controller.rb
1. def get_automodels
2. @automodels = Automodels.find_by_make(params[:make])
3. render :update do |page|
4. page.replace_html(''automodelsdiv'', :partial => ''automodels'')
5. end
6. end
_automodels.html.erb
1. <%= f.collection_select :model, @automodels, :model, :model,
{:prompt => "-Sele...