Restful Comments plugin

Plugin details

Comment system for Ruby on Rails applications, which includes: classical tree-view comments, citations and notes. Main targeting feature is simplicity of integration in Ruby on Rails application.

Websitehttp://rubyforge.org/projects/rf-comments/ Repositoryhttp://rf-comments.rubyforge.org/svn/trunk/restful_comments/ Author Alexey Noskov Tags comment LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://rf-comments.rubyforge.org/svn/trunk/restful_comments/

Common configuring:
========================
1. Add *map*.*from_plugin* :*restful_comments* to your *routes*.*rb*
2. Copy localization files from {*RAILS_ROOT*}/*vendor*/*plugins*/*restful_comments*/*lang*/*ui* directory to your {*RAILS_ROOT*}/*lang*/*ui* directory, or add their content to your existing localization files
3. In *environment*.*rb* set your localization language (for example, *Globalite*.*language* = :*en*)
4. If you want to specify per-user access rules and your helpers haven't method *current_user*, implement this method in *ApplicationHelper*.

For commentable:
====================
1. Add *acts_as_restful_commentable* into your model class to declare it as commentable
2. Add <%= *restful_comments_include*%> into your erb template to include styles and javascripts
3. Don't forget to add <%= *javascript_include_tag* :*defaults* %> to your layout
4. Add <%= *restful_comments_for* {model_instance} %> into view to render comments of {model_instance}

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago