search for: options_for_url

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

2005 Dec 14
0
assert_generates and catch-all routes
...s = { :controller => ''people'', :action => ''default_action'', :args => [''made_up''] } assert_recognizes expected_options, ''people/made_up'' I''m wondering why I cannot test the other way, using assert_generates? options_for_url = { :controller => ''people'' } assert_generates ''people/default_action'', options_for_url The above fails with "ActionController::RoutingError: No url can be generated for the hash". I assume I am missing something in my understanding of routing. I...