My routes.rb files has sty like this:
match ‘tickets/:conditions’ => ‘tickets#index’, :as =>
:list_tickets, :constraints => {:conditions => /(\w+):(\w+)/}
match ‘tickets/sort::sort’ => ‘tickets#index’, :as
=> :root_sort
match ‘tickets/mailbox::mailbox’ => ‘tickets#index’, :as
=> :view_mailbox
match ‘tickets/status::status’ => ‘tickets#index’, :as
=> :view_status
match ‘tickets/tag::tag’ => ‘tickets#index’, :via
=> :get, :as => :show_tag
I want to get it working with addresses like:
http://localhost:3000/tickets/mailbox:1/sort:date
and inverted too:
http://localhost:3000/tickets/sort:date/mailbox:1
What am I doing wrong?
Thanks!