<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>PlasticRain - Rails Plugins</title>
    <link>http://plasticrain.com/category/rails-plugins.xml</link>
    <description>Posts from the Rails Plugins category at the PlasticRain blog</description>
    <language>en-gb</language>
    <item>
      <pubDate>Sat, 29 Dec 2007 17:26:00 +0000</pubDate>
      <title>Colour Picker Rails Plugin</title>
      <link>http://plasticrain.com/2007/12/29/colour-picker-rails-plugin</link>
      <guid>http://plasticrain.com/2007/12/29/colour-picker-rails-plugin</guid>
      <description>
&lt;p&gt;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.&lt;/p&gt;


	&lt;p&gt;&lt;img src=&quot;http://s3.amazonaws.com:/plasticrain/images/161/colour_picker_screenshot.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Installation Instructions&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;1. Install the plugin into your Rails application&lt;/p&gt;


&lt;pre&gt;./script/plugin install &lt;a href=&quot;http://svn.plasticrain.com/stuff/rails/plugins/colour_picker&quot;&gt;http://svn.plasticrain.com/stuff/rails/plugins/colour_picker&lt;/a&gt;&lt;/pre&gt;

	&lt;p&gt;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 &amp;#8211; a spacer and alternative button icon.&lt;/p&gt;


	&lt;p&gt;You need to include the javascript in your application&amp;#8217;s layout.&lt;/p&gt;


&lt;code&gt;&amp;lt;%=javascript_include_tag 'colour_picker'%&amp;gt;&lt;/code&gt;

	&lt;p&gt;Within your form, simply call the &amp;#8216;colour_field&amp;#8217; method:&lt;/p&gt;


&lt;code&gt;&amp;lt;%=colour_field :object, :method%&amp;gt;&lt;/code&gt;

	&lt;p&gt;&lt;img src=&quot;http://s3.amazonaws.com:/plasticrain/images/166/colour_picker_screenshot_2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Usage Examples&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Use the colour field with a graphical swatch icon rather than a button:&lt;/p&gt;


&lt;code&gt;&amp;lt;%=colour_field :object, :method, :use_swatch_icon =&amp;gt; true%&amp;gt;&lt;/code&gt;

	&lt;p&gt;Change the label of the default button:&lt;/p&gt;


&lt;code&gt;&amp;lt;%=colour_field :object, :method, {}, {:value =&amp;gt; 'Choose a colour' }%&amp;gt;&lt;/code&gt;

	&lt;p&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Subversion &amp;#8211; &lt;a href=&quot;http://svn.plasticrain.com/stuff/rails/plugins/colour_picker&quot;&gt;http://svn.plasticrain.com/stuff/rails/plugins/colour_picker&lt;/a&gt;&lt;/p&gt;      </description>
    </item>
    <item>
      <pubDate>Fri, 10 Aug 2007 16:43:00 +0000</pubDate>
      <title>Rails MySQL Backup Plugin</title>
      <link>http://plasticrain.com/2007/8/10/rails-mysql-backup-plugin</link>
      <guid>http://plasticrain.com/2007/8/10/rails-mysql-backup-plugin</guid>
      <description>
&lt;p&gt;A simple backup plugin for backing up mysql databases and compressing them on linux systems.&lt;/p&gt;


	&lt;p&gt;It uses mysqldump and tar to create and compress the backups. Details of the backup are then saved into
a &amp;#8216;database_backups&amp;#8217; table which contains the filename, path and file size as well as the date created.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt;:&lt;/strong&gt; &lt;a href=&quot;http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup&quot;&gt;http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Install:&lt;/strong&gt;&lt;/p&gt;


&lt;pre&gt;./script/plugin install / 
&lt;a href=&quot;http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup&quot;&gt;http://svn.plasticrain.com/stuff/rails/plugins/mysql_backup&lt;/a&gt;&lt;/pre&gt;

	&lt;p&gt;As usual, if you have any comments or suggestions please &lt;a href=&quot;/contact&quot;&gt;let me know&lt;/a&gt;&lt;/p&gt;      </description>
    </item>
    <item>
      <pubDate>Sat, 07 Jul 2007 14:12:00 +0000</pubDate>
      <title>RailsBits launched</title>
      <link>http://plasticrain.com/2007/7/7/railsbits-launched</link>
      <guid>http://plasticrain.com/2007/7/7/railsbits-launched</guid>
      <description>
&lt;p&gt;&lt;strong&gt;Update: this has now been replaced by the PlasticRain &lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt; repo at &lt;a href=&quot;http://projects.wh.plasticrain.com&quot;&gt;http://projects.wh.plasticrain.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;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 &lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;Take a look at &lt;a href=&quot;http://trac.atechmedia.com/railsbits&quot;&gt;http://trac.atechmedia.com/railsbits&lt;/a&gt;&lt;/del&gt;&lt;/p&gt;


	&lt;p&gt;This site contains aTech Media&amp;#8217;s open source Rails plugins as well as access to our RoR media files (wallpapers, logos etc&amp;#8230;)&lt;/p&gt;      </description>
    </item>
  </channel>
</rss>
