when a new post is created, the page is now scrolled to is via its anchor created a show post route, and view. added a post number to post view, with link. need to change displayed post number from post id, to reply #
21 lines
543 B
Ruby
21 lines
543 B
Ruby
Community::Application.routes.draw do
|
|
resources :categories, :except => [:index, :show]
|
|
|
|
resources :forums, :except => :index do
|
|
resources :topics, :shallow => true, :except => :index do
|
|
resources :posts, :shallow => true, :except => [:index, :show]
|
|
end
|
|
root :to => 'categories#index', :via => :get
|
|
end
|
|
|
|
resources :posts, :only => :show
|
|
|
|
devise_for :users, :controllers => {:registrations => "registrations"}
|
|
|
|
scope "/admin" do
|
|
resources :users
|
|
end
|
|
|
|
root :to => 'categories#index', :via => :get
|
|
end
|