Files
forum/config/routes.rb
Ricky Barrette 7da52114ca Added post anchors and show post.
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 #
2013-01-25 03:33:48 -05:00

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