Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created July 15, 2012 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppworks/3116400 to your computer and use it in GitHub Desktop.
Save ppworks/3116400 to your computer and use it in GitHub Desktop.
routes for users
My::Application.routes.draw do
resources :users, :only => [:show] do
resources :followings, :only => [:index]
resources :followers, :only => [:index]
resources :groups, :only => [:index]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment