search for: listings_control

Displaying 2 results from an estimated 2 matches for "listings_control".

2007 Dec 24
1
Uninitialized constant in integration test
I am seeing weird issues when trying to create integration tests. Here is a very simple example of something that is failing. The assert_redirected_to, and other methods, fail with this or similar exceptions. I have tried requiring both ''application'' and ''listings_controller'', but neither solves this problem, although the exception changes. Anybody know what''s going on here? Thanks. ---- require "#{File.dirname(__FILE__)}/../test_helper" class FooTest < ActionController::IntegrationTest def test_redirect get "/"...
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
...9;> 10. <%= f.collection_select :model, @automodels, :model, :model, {: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.col...