Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created December 13, 2011 07:27
Show Gist options
  • Select an option

  • Save joegaudet/1471064 to your computer and use it in GitHub Desktop.

Select an option

Save joegaudet/1471064 to your computer and use it in GitHub Desktop.
resources :users, :path => "profile" do
get 'follow', :on => :member
get 'unfollow', :on => :member
get 'followers', :on => :member
get 'following_courses', :on => :member, :as => :courses_followed_by, :path => "following/courses"
get 'following_users', :on => :member, :as => :users_followed_by, :path => "following/users"
# teacher interest
post 'teach', :on => :collection
get 'teach', :on => :collection
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment