2014-02-10 85 views

回答

0

您可以通過修改routes.rb中的'postmarkdown'行來更改默認路由路徑。例如:

postmarkdown :as => :blog 

這將產生以下途徑:

http://example.com/blog # lists all posts http://example.com/blog/2011 # lists all posts from 2011 http://example.com/blog/2011/01 # lists all posts from January 2011 http://example.com/blog/2011/01/01 # lists all posts from the 1st of January 2011 http://example.com/blog/2011/01/01/test-post # show the specified post

+0

的問題是,Postmarkdown有一個叫'POST'和'Taggings'型號/遷移,我已經有了,所以PostMarkdown能因爲它們與我現有的移民衝突,所以不會進行自己的移民 – Brian