This is a view plugin that can help developers with the creation of a simple calendar. Don’t think Google Calendar or Outlook but this will get you started. To install the plugin use the plugin install script: script/plugin install http://topfunky.net/svn/plugins/calendar_helper The plugin has a generate script that will create three CSS styles for the calendar. [...]
Posted in Ruby, TechKnow |
This is one the the most simple and useful plugins you can use. To get started you will need to install the PDF::Writer gem. gem install pdf-writer Install the Rails PDF Plugin. script/plugin install svn://rubyforge.org//var/svn/railspdfplugin/railspdf To create a PDF document for an action, you need to change the action’s view extension from rhtml to rpdf. [...]
Posted in Ruby, TechKnow |
Riff is a handy diff tool for ActiveRecord models. The Riff plugin adds just three methods to the ActiveRecord class, diff?, diff, and diff_against_attributes. You install Riff like any other plugin using the script/plugin install command: script/plugin install http://tfletcher.com/svn/rails-plugins/riff/ Once installed all you have to do to use riff is to create model records. firstPost [...]
Posted in Ruby, TechKnow |
This is my latest installment on Ruby on Rails plugins. Here is a rails plugin which can help your user manage bookmarks of model records. A bookmarkable model can be any ActiveRecord class so you can use the acts_as_bookmarkable to bookmark other users in a friends list, or bookmark posts in a favorites list, etc. [...]
Posted in Ruby, TechKnow |
The acts as versioned plugin allows you to manage different versions of a model record so that you can revert to a previous version or create new ones. To install execute the following command: script/plugin install http://svn.techno-weenie.net/projects/plugins/acts_as_versioned Make your model act as versioned. class Post < ActiveRecord::Base acts_as_versioned end Versioned post are saved in a [...]
Posted in Ruby, TechKnow |
The Ruby on Rails plugin acts_as_blog does not make your ActiveRecord model into a blog… The acts_as_blog plugin helps your model by converting simple text to HTML formatted text. You can use acts_as_blog in blogs, as the name alludes to, or in a wiki-like system. Acts As Blog currently supports text-to-HTML formats Textfile via the [...]
Posted in Ruby, TechKnow |