Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (19 sloc) 498 Bytes
Rails.application.routes.draw do
devise_for :users
resources :users, :only => [:show]
resources :post_tags
resources :tags
root 'blogs#show', {id: 1}
resources :blogs do
resources :posts
end
# resources :users
get 'welcome/index'
# controller :sessions do
# get 'login' => :new
# post 'login' => :create
# get 'logout' => :destroy
# end
# Point /about to the first post of the first blog
get '/about', to: 'posts#show', blog_id: 1, id: 1
end