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 it to 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!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.