Fox::Application.routes.draw do
  resources :posts

  match 'p/:id' => 'posts#show', :as => :p
  match '/help' => 'posts#help', :as => :help
  match '/search' => 'posts#search', :as => :search
  root :to => 'posts#index'
end

Fox::Application.routes.draw do
  resources :posts, :as => :p

  match '/help' => 'posts#help', :as => :help
  match '/search' => 'posts#search', :as => :search
  root :to => 'posts#index'
end
Make real alias for posts resources
Make real alias for posts resources

To have shorter urls for posts, we add an alias for posts to it.