Displaying 1 result from an estimated 1 matches for "assign_route_opt".
2009 Oct 27
1
Simple question on rails routing
...'photos/:id'', :controller => ''photos'', :action =>
''show'', :defaults => { :format => ''jpg'' }
and I get the following error:
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
routing/builder.rb:107:in `assign_route_options'': format: No matching
segment exists; cannot assign default (ArgumentError)
It looks like I need to actually have :format defined as part of the
url. Did something change recently? I am using rails 2.3.2