Skip to content

Instantly share code, notes, and snippets.

@JosephShering
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JosephShering/9797001 to your computer and use it in GitHub Desktop.
Save JosephShering/9797001 to your computer and use it in GitHub Desktop.
class SuggestionController < ApplicationController
def vote
end
def get
end
end
Wtfdo::Application.routes.draw do
root 'home#index'
resources :home
resources :suggestion do
member do
get 'vote'
end
end
end
Prefix Verb URI Pattern Controller#Action
root GET / home#index
home_index GET /home(.:format) home#index
POST /home(.:format) home#create
new_home GET /home/new(.:format) home#new
edit_home GET /home/:id/edit(.:format) home#edit
home GET /home/:id(.:format) home#show
PATCH /home/:id(.:format) home#update
PUT /home/:id(.:format) home#update
DELETE /home/:id(.:format) home#destroy
vote_suggestion GET /suggestion/:id/vote(.:format) suggestion#vote
suggestion_index GET /suggestion(.:format) suggestion#index
POST /suggestion(.:format) suggestion#create
new_suggestion GET /suggestion/new(.:format) suggestion#new
edit_suggestion GET /suggestion/:id/edit(.:format) suggestion#edit
suggestion GET /suggestion/:id(.:format) suggestion#show
PATCH /suggestion/:id(.:format) suggestion#update
PUT /suggestion/:id(.:format) suggestion#update
DELETE /suggestion/:id(.:format) suggestion#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment