Last active
August 29, 2015 13:57
-
-
Save JosephShering/9797001 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuggestionController < ApplicationController | |
def vote | |
end | |
def get | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wtfdo::Application.routes.draw do | |
root 'home#index' | |
resources :home | |
resources :suggestion do | |
member do | |
get 'vote' | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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