Skip to content

Instantly share code, notes, and snippets.

@andreierdoss
Created March 25, 2009 21:57
Show Gist options
  • Save andreierdoss/85745 to your computer and use it in GitHub Desktop.
Save andreierdoss/85745 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
map.namespace(:member) do |member|
member.with_options(:controller => 'messages') do |messages|
messages.resources :messages,
:collection => { :move => :post,
:copy => :post,
:mark_as_read => :post,
:mark_as_unread => :post,
:search => :get
},
:member => { :reply => :get }
messages.new_message_to 'messages/new/:user_id', :action => "new"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment