I have been reading that you can pass a parameters hash to a named route: <p>You can get <%= link_to "help!", assist_path(:action => "membership") %></p> <p>You can get <a href="/assistance/membership">help!</a></p>
Now, for me, I have the following named route:
# the bootcamp calendar map.bootcamp_calendar "/boot_camp_info/Calendar/:year/:month", :controller => "boot_camp_info", :action => "Calendar", :requirements => {:year => /\d{4}/,:month => /\d{1,2}/}, :defaults => {:year => Date.today.year, :month => Date.today.month}
However, my code <p><%= link_to "Prev", bootcamp_calendar_path(:year => '2008', :month => '3') %></p>
Produces <a href="/boot_camp_info/Calendar">Prev</a> not <a href="/boot_camp_info/Calendar/2008/3">Prev</a>
In fact, when debugging, bootcamp_calendar_path(:year => '2008', :month => '3') resolves to /boot_camp_info/Calendar and neglects the hash values.
I have fought with this for awhile, but I am at a loss. I have traced all the rails code I can find, but don't see where things could be going wrong.
Any help greatly appreciated.
regards,
tim