diff options
-rw-r--r-- | db/seeds.rb | 6 | ||||
-rw-r--r-- | readme.md | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 6eaa1ba..271b044 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,12 +5,12 @@ Refinery::User.all.each do |user| end end if defined?(Refinery::User) -if defined?(Refinery::Page) and !Refinery::Page.exists?(:link_url => '/blog') +if defined?(Refinery::Page) and !Refinery::Page.exists?(:link_url => (url = Refinery::Blog.page_url)) page = Refinery::Page.create( :title => "Blog", - :link_url => "/blog", + :link_url => url, :deletable => false, - :menu_match => "^/blogs?(\/|\/.+?|)$" + :menu_match => "^#{url}?(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each_with_index do |default_page_part, index| @@ -15,14 +15,14 @@ Refinery CMS version 3.0.0 or above. ## Install -Open up your ``Gemfile`` and add at the bottom this line. If refinerycms-page-images extension is also installed, make sure the line come before gem 'refinerycms-page-images' +Open up your ``Gemfile`` and at the bottom, add this line: ```ruby gem 'refinerycms-blog', git: 'https://github.com/refinery/refinerycms-blog', branch: 'master' ``` - +Note: if the [refinerycms-page-images](https://github.com/refinery/refinerycms-page-images) extension is also installed, make sure `gem refinerycms-blog` comes before `gem 'refinerycms-page-images'`. Now, run ``bundle install`` @@ -59,7 +59,7 @@ Or just with rake spec ## Additional Features * To limit rss feed length, use the 'max_results' parameter - http://test.host/blog/feed.rss?max_results=10 + http://test.host/blog/feed.rss?max_results=10 ## More Information * Check out our [Website](http://refinerycms.com/) |