Skip to content

Instantly share code, notes, and snippets.

@cilquirm
Created January 14, 2009 15:47
Show Gist options
  • Save cilquirm/46938 to your computer and use it in GitHub Desktop.
Save cilquirm/46938 to your computer and use it in GitHub Desktop.
resources :email_accounts do
member :make_primary , :to => 'make_primary'
member :choose_primary , :to => 'choose_primary'
collection :find_by_email, :to => 'find_by_email'
s identify( EmailAccount => [:escaped_confirmation_id, :confirmation_code] ).match('/confirm/:escaped_confirmation_id/:confirmation_code').to(:controller => 'email_accounts', :action => 'confirm').name(:confirm)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment