i have a problem with generating a url with the helper.
in the routes.rb:
# cats map.cat '/category/:id/:page', :namespace => 'front', :controller => 'cats', :action => 'cat', :requirements => { :page => /\d+/ }, :page => nil map.cat '/category/:id', :namespace => 'front', :controller => 'cats', :action => 'cat'
when the url is generating from will_paginate plugin helper it work fine. but if i want to set my personal helper to build the url with the page, example:
<%= cat_url( @obj.id, var_numb_page ) => where "var_numb_page" is a integer indicates the :page param
i have this error:
undefined method `has_key?' for 2:Fixnum
i not understand where is the problem.