Skip to content

Instantly share code, notes, and snippets.

@elyosemite
Created September 29, 2019 16:05
Show Gist options
  • Select an option

  • Save elyosemite/8cec64ccd9b42bdc9b6302bee6a53568 to your computer and use it in GitHub Desktop.

Select an option

Save elyosemite/8cec64ccd9b42bdc9b6302bee6a53568 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
get 'admin/index'
root 'index#index'
get '/login/index'
post '/login/show', to: 'login#show'
get '/login', to: 'login#index'
get '/cadastrar', to: 'cadastrar#index'
post '/cadastrar/new', to: 'cadastrar#new'
get '/admin', to: 'admin#index'
get '/admin/show', to: 'admin#show'
get '/admin/:id/destroy', to: 'admin#destroy'
get '/admin/:id/edit', to: 'admin#edit'
post '/admin/:id', to: 'admin#update'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment