Skip to content

Instantly share code, notes, and snippets.

@neaf
Created December 10, 2009 20:01
Show Gist options
  • Select an option

  • Save neaf/253618 to your computer and use it in GitHub Desktop.

Select an option

Save neaf/253618 to your computer and use it in GitHub Desktop.
match('/profile').to(:controller => :users, :action => :show).send(:register_resource, "user")
match('/account').to(:controller => :users, :action => :edit).send(:register_resource, "user", "edit")
match('/register').to(:controller => :users) do
match(:method => 'get').to(:action => 'new').send(:register_resource, "user", "new")
match(:method => 'post').to(:action => 'create').send(:register_resource, "user", "create")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment