Skip to content

Rails engine that makes managing faq/manual easy and simple. Multilingual CMS for managing faq, question/answer, manual etc.

License

Notifications You must be signed in to change notification settings

amuntasim/how_to

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails engine that makes managing faq/manual easy and simple. Multilingual CMS for managing faq, question/answer, manual etc.

Live Demo

Live demo source code

gem 'how_to'
gem "jquery-rails"
gem 'bootstrap-sass'
gem 'sass-rails',   '~> 3.2.5'
rake how_to:install:migrations
rake db:migrate
mount HowTo::Engine => "/how_to"
rails g how_to:config

Details are documented in config file, so please read the config file carefully.

localhost:3000/how_to

You should see the public page. You should also see two links on head section named sections and contents. if you override the authorization methods (described in later section) make sure you have permissions to access those pages.

Two models are there.

You can have multilevel section. You can consider this as category. Sections are hierarchical, but only leaves are eligible to have contents

You can create content as question/answer or faq under a specific section. If you love rich text editor for content then see the last section of Readme.

def authorize_to_manage_how_to! #you can set the method name in config file
  redirect_to :root, :notice => t('notifications.admin_section_access_error') unless admin?
end

def allowed_to_view_how_to #you can set the method name in config file
  redirect_to main_app.root_path, :notice => t('notifications.admin_section_access_error') unless current_user
end

def permitted_to_manage_how_to? #you can set the method name in config file
  admin?
end
rails g how_to:layout
rails g how_to:view

Then set

config.rich_text_enabled = true

in initializers/how_to_config.rb file

This project rocks and uses MIT-LICENSE.

About

Rails engine that makes managing faq/manual easy and simple. Multilingual CMS for managing faq, question/answer, manual etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •