shorten stories to /s/ instead of /p/
This commit is contained in:
parent
a35784c3ea
commit
f6560d37ad
|
@ -80,7 +80,7 @@ class Story < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def comments_url
|
||||
"/p/#{self.short_id}/#{self.title_as_url}"
|
||||
"/s/#{self.short_id}/#{self.title_as_url}"
|
||||
end
|
||||
|
||||
@_comment_count = nil
|
||||
|
|
|
@ -37,7 +37,7 @@ Lobsters::Application.routes.draw do
|
|||
post "/comments/:story_id" => "comments#create"
|
||||
post "/comments/preview/:story_id" => "comments#preview"
|
||||
|
||||
get "/p/:id/(:title)" => "stories#show"
|
||||
get "/s/:id/(:title)" => "stories#show"
|
||||
get "/u/:id" => "users#show"
|
||||
|
||||
get "/rss" => "home#index", :format => "rss"
|
||||
|
|
Loading…
Reference in a new issue