Archives for Rails Plugins

29
DEC

A useful form helper to provide an easy to use colour picker field. Using this plugin you can simply provide a colour field with an integrated javascript colour picker.

Installation Instructions

1. Install the plugin into your Rails application

./script/plugin install http://svn.plasticrain.com/stuff/rails/plugins/colour_picker

This will automatically copy some required resources into the appropriate locations. The colour_picker.js file which powers all the javascript actions will be copied into public/javascripts. Also, a new folder will be created in your public/images folder to contain two required images – a spacer and alternative button icon.

You need to include the javascript in your application’s layout.

<%=javascript_include_tag 'colour_picker'%>

Within your form, simply call the ‘colour_field’ method:

<%=colour_field :object, :method%>

Usage Examples

Use the colour field with a graphical swatch icon rather than a button:

<%=colour_field :object, :method, :use_swatch_icon => true%>

Change the label of the default button:

<%=colour_field :object, :method, {}, {:value => 'Choose a colour' }%>

Code

Subversion – http://svn.plasticrain.com/stuff/rails/plugins/colour_picker


10
AUG

A simple backup plugin for backing up mysql databases and compressing them on linux systems.

It uses mysqldump and tar to create and compress the backups. Details of the backup are then saved into a ‘database_backups’ table which contains the filename, path and file size as well as the date created.

SVN: http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup

Install:

./script/plugin install / 
http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup

As usual, if you have any comments or suggestions please let me know


07
JUL

RailsBits launched

Posted by Adam Posted in Rails Plugins 0 comments

Update: this has now been replaced by the PlasticRain SVN repo at http://projects.wh.plasticrain.com

RailsBits is a very simple collection of open source Rails resources which we have published within a Trac project as well as made available through SVN.

Take a look at http://trac.atechmedia.com/railsbits

This site contains aTech Media’s open source Rails plugins as well as access to our RoR media files (wallpapers, logos etc…)