Showing posts with label browser cms. Show all posts
Showing posts with label browser cms. Show all posts

Tuesday, January 29, 2013

Integrate Bcms Blog along with BrowserCMS

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

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

Tuesday, October 4, 2011

undefined method 'add_to_rails_paths' for Cms:Module (NoMethodError)

Hello guys,
          During the browser cms configuration i have got the some errors which i have listed below with appropriate fix.

Error:
/gems/bcms_event-1.0.0/rails/init.rb:2:in `evaluate_init_rb': undefined method `add_to_rails_paths' for Cms:Module (NoMethodError)

Solution:
In bcms_event-1.0.0/rails/init.rb add below line
require 'browsercms'

Error:
/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:466:in `load_missing_constant': uninitialized constant Cms::S3 (NameError)

Solution:
install dependency via gem install right_aws

Keep in mind browser cms application runs with ruby 1.8.7 or latest.

Content Management System - Browser CMS

Hello rubies,
        I have integrated browser cms in one of the rails application. Awesome to deal with it. Install the browser cms as per your rails version.

If you are using rails below 3 than use browsercms 3.1.2
else use latest version browsercms 3.3.2

After installing cms create the rails application by using command
bcms new project_name -d mysql
cd project_name
rake db:install
rails server

This will create the cms using browsercms. Now you will deal with it by 
adding additional pages, portlets, sections..etc

Want to create in built demo application using browser cms?
bcms demo project_name -d mysql
cd project_name 
rake db:install
rails server

This will create a BrowserCMS project which used MySql as the data
storage. Run the application using http://localhost:3000/cms. and use it's
default user credential cmsadmin/cmsadmin

Get more information regarding browser cms by referring
https://github.com/browsermedia/browsercms/wiki