search for: jeffreycohen

Displaying 1 result from an estimated 1 matches for "jeffreycohen".

2007 Feb 05
0
How do I use a RESTful helper with path_prefix?
...but not in my test code: def test_client_orders get orders_url(:client => ''myclient'') assert_response :success end results in this: NoMethodError: You have a nil object when you didn''t expect it! The error occurred while evaluating nil.rewrite /Users/jeffreycohen/Sites/modem_app/trunk/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:522:in `url_for'' (eval):19:in `orders_url'' /Users/jeffreycohen/Sites/modem_app/trunk/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:451:in `send'' /...