shorten stories to /s/ instead of /p/

This commit is contained in:
joshua stein 2012-06-30 19:47:17 -05:00
parent a35784c3ea
commit f6560d37ad
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"