Hello Guys,
Want to integrate bcms_blog along with browser CMS via ruby? then simply follow the below steps.
http://modules.browsercms.org/modules/3-bcms-blog
Want to integrate bcms_blog along with browser CMS via ruby? then simply follow the below steps.
http://modules.browsercms.org/modules/3-bcms-blog
Install gem called
gem install bcms_blog
Specify configuration in environment.rb as
config.gem 'bcms_blog', :version=>'1.1.1'
Modify routes.rb
map.routes_for_bcms_blog
map.routes_for_browser_cms
No go to the your directory from command prompt and execute below commands.
script/generate browser_cms
rake db:migrate
Now login to cms web page & go to Content Library Menu and on left side panel you'll see the Blog section and under that 3 sub sections.
a. Blog
b. Blog Comment
c. Blog Post
Now creating and publishing blog follow procedure listed below:
1. Go to Blog section & create it.
2. Create category for blog section from Categorization -> Category Type..
3. Add blog post from Blog Post section.
4. Now publish all and on front end you'll see successfully created blog.
5. If you get any error like
ERROR: undefined method `_blog_post_path' for #<#:..>
Then
include Cms::BlogHelper in ApplicationHelper
And
add below method under Cms::BlogHelper
def self.included(controller_class)
Rails.logger.info "~~ BlogHelper included in #{ controller_class.inspect.to_s }"
end
Rails.logger.info "~~ BlogHelper included in #{ controller_class.inspect.to_s }"
end
6. Now on posted blog you have option for Comment.. and user's added comment only visible if they moderate it and publish.
Hope you guys, enjoy my blog.. and it's helpful .. For more information see https://github.com/browsermedia/bcms_blog/blob/master/doc/release_notes.txt
No comments:
Post a Comment