Displaying 1 result from an estimated 1 matches for "orders_url".
Did you mean:
order_url
2007 Feb 05
0
How do I use a RESTful helper with path_prefix?
...#39;':client/'', :controller => ''orders'', :action =>
''index''
map.resources :orders, :path_prefix => '':client/''
and in fact it works when I test through a browser, 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...