<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss version="2.0">
  <channel>
    <title>Michael Deering</title>
    <description>Software for Fun and Profit</description>
    <link>http://mdeering.com</link>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MichaelDeering" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="michaeldeering" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>Flash Messages Helper: Rails Gem for displaying flash messages</title>
      <description>&lt;p&gt;I would like to announce the release of another gem over on &lt;a href="http://gemcutter.org"&gt;Gemcutter&lt;/a&gt; .&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0116/rubygems.png" title="Ruby Gems Logo" alt="Ruby Gems Logo" /&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://gemcutter.org/gems/flash_messages_helper"&gt;flash_messages_helper gem&lt;/a&gt; is a simple but configurable and well documented helper for displaying flash messages inside of your Ruby on Rails applications.&lt;/p&gt;
&lt;p&gt;For full details see the &lt;a href="http://github.com/mdeering/flash_messages_helper"&gt;readme over on github&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;Sorry for being so breif.  Ruby 1.9 and Rails 3 compatablily are next on the roadmap for all these gems.  I have promissed screencasts of some these recently released gems in action following the compatibly milestones.&lt;/p&gt;</description>
      <pubDate>Tue, 19 Jan 2010 12:35:00 +0000</pubDate>
      <link>http://mdeering.com/posts/026-rails-flash-messages-helper-ruby-gem</link>
    </item>
    <item>
      <title>Gravatar Image Tag: New features and bundled into a gem.</title>
      <description>&lt;p&gt;The &lt;a href="http://github.com/mdeering/gravatar_image_tag"&gt;Rails Gravatar Plugin&lt;/a&gt; has undergone a bunch of changes recently.  Highlights for this &lt;strong&gt;0.0.2 relase&lt;/strong&gt; are as follows.&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0106/gravatar.png" title="Gravatar Logo" alt="Gravatar Logo" /&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;It is now bundled into a gem &lt;a href="http://gemcutter.org/gems/gravatar_image_tag" title="Gravatar Ruby Gem"&gt;hosted over on Gemcutter.&lt;/a&gt; (Still works as a plugin also)&lt;/li&gt;
	&lt;li&gt;Support for pulling Gravatars off of a secure https server was added.&lt;/li&gt;
	&lt;li&gt;Support for using Gravatar ratings was added.&lt;/li&gt;
	&lt;li&gt;Support for specifying a file extension was added.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All the old and new features and usage is well documented in the projects &lt;a href="http://github.com/mdeering/gravatar_image_tag/blob/master/README.textile"&gt;&lt;span class="caps"&gt;README&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Mon, 04 Jan 2010 22:30:00 +0000</pubDate>
      <link>http://mdeering.com/posts/025-gravatar-image-tag-ruby-gem-rails-plugin</link>
    </item>
    <item>
      <title>Attribute Normalizer: Now also in ruby gem flavor</title>
      <description>&lt;pre&gt;&lt;code&gt;sudo gem install attribute_normalizer&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;a href="http://mdeering.com/posts/019-activerecord-attribute-normalization-rails-plugin" title="Attribute Normalizing Rails Plugin"&gt;Attribute Normalizer rails plugin&lt;/a&gt; has been packaged up into a &lt;a href="http://gemcutter.org/gems/attribute_normalizer"&gt;ruby gem hosted over at Gemcutter.&lt;/a&gt;&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0115/gemcutter_logo.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;This release (&lt;strong&gt;0.1.1&lt;/strong&gt;) also includes bug, feature, and documenation fixes.&lt;/p&gt;
&lt;p&gt;I am looking for feedback on what I have planned for the 0.2 release of the gem/plugin.&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0114/roadmap.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at the &lt;a href="http://github.com/mdeering/attribute_normalizer/blob/master/ROADMAP.textile"&gt;roadmap over on github&lt;/a&gt; and email me or drop a comment here with your feedback.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Mike D.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Jan 2010 17:15:00 +0000</pubDate>
      <link>http://mdeering.com/posts/024-active-record-attribute-normalizer-gem</link>
    </item>
    <item>
      <title>Ruby on Rails Flash Message View Helper</title>
      <description>&lt;p&gt;I have been extracting and abstracting many of the &lt;a href="http://mdeering.com/posts/019-activerecord-attribute-normalization-rails-plugin" title="Active Record Attribute Normalizer"&gt;components&lt;/a&gt; that I use across &lt;a href="http://mdeering.com/posts/022-ruby-on-rails-gravitar-plugin" title="Ruby on Rails Gravatar helper"&gt;most of the Ruby on Rails applications&lt;/a&gt; that I work with and putting them up on GitHub as gems and Rails plugins.  Here is another one (&lt;a href="https://github.com/mdeering/flash_messages_helper"&gt;Flash Messages Helper&lt;/a&gt;) and I still have a lot more where these have been coming from.&lt;/p&gt;
&lt;p&gt;Cheers, I hope you have a use for them.&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0110/nudist-colony-flasher.jpg" title="Nudist Colony Flasher" alt="Nudist Colony Flasher" /&gt;&lt;/p&gt;
&lt;p&gt;I am in no way the &lt;a href="http://github.com/planetargon/flash-message-conductor"&gt;first person&lt;/a&gt; to create a &lt;a href="http://www.teachmetocode.com/screencasts/3" title="Create a simple Rails Plugin"&gt;flash message plugin&lt;/a&gt;, but the other plugins that I did come across lacked any type of configuration or flexibility, so I ended up rolling my own.&lt;/p&gt;
&lt;h2&gt;Install&lt;/h2&gt;
&lt;pre&gt;./script/plugin install git://github.com/mdeering/flash_messages_helper.git&lt;/pre&gt;
&lt;p&gt;After installing the plugin you just need to replace your flash message calls with the following in your layout file.&lt;/p&gt;
&lt;pre&gt;flash_messages&lt;/pre&gt;
&lt;p&gt;The configuration points of the plugin include being able to change the id and class attriubtes of the elements along with the type of element that actually wraps your flash messages.  See the full documentation over on &lt;a href="https://github.com/mdeering/flash_messages_helper" title="Ruby on Rails Flash Messages Helper Plugin"&gt;the flash_messages_helper plugin page at GitHub&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Example Usage&lt;/h2&gt;
&lt;p&gt;I like to add a class &lt;em&gt;hideable&lt;/em&gt; to all flash messages and then use jQuery to allow the user to remove the flash message elements from the page if they like.&lt;/p&gt;
&lt;pre&gt;&lt;code class="ruby"&gt;# config/initilizers/flash_messages_helper_settings.rb
ActionView::Base.flash_message_class_proc = lambda {|key| "#{key} hideable"}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now all flash messages will come out with the class hideable.  We can unobtrusively attach the hiding behavor to the element with the following jQuery.&lt;/p&gt;
&lt;pre&gt;&lt;code class="javascript"&gt;
$(document).ready(function(){
  // Will add a link at the bottom of any element that is hiddable
  $.each($('.hideable'), function() {
    $(this).append('&amp;lt;a href="#" class="hide-link"&amp;gt;Hide&amp;lt;/a&amp;gt;');
  });

  // And this will actualy do the hiding of the parent element
  $('a.hide-link').click(function() {
    $(this).parent().hide('slow');
    return false
  });
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do me a quick favor if end up using some of my work.  Take the time to &lt;a href="http://www.workingwithrails.com/recommendation/new/person/7461-michael-deering"&gt;Recommend me on Working With Rails&lt;/a&gt; , give &lt;a href="http://github.com/mdeering"&gt;me or one my repos a follow over on Github&lt;/a&gt; , &lt;a href="http://twitter.com/mdeering"&gt;follow me over on Twitter&lt;/a&gt; , or all of the above.&lt;/p&gt;</description>
      <pubDate>Mon, 28 Sep 2009 10:05:00 +0000</pubDate>
      <link>http://mdeering.com/posts/023-ruby-on-rails-flash-message-view-helper</link>
    </item>
    <item>
      <title>Ruby on Rails Gravatar Plugin</title>
      <description>&lt;p&gt;Last week I got around to wrapping up &lt;a href="http://mdeering.com/posts/005-adding-gravitar-to-your-website-or-blog"&gt;my old Gravatar solution&lt;/a&gt; into an actual configurable Ruby on Rails plugin and hosting it over on &lt;a href="http://github.com" title="Git Repository Hosting"&gt;GitHub&lt;/a&gt; .&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://mdeering.com/assets/0000/0106/gravatar.png" title="Gravatar Logo" alt="Gravatar Logo" /&gt;&lt;/p&gt;
&lt;p&gt;Here is some example usage and configuration examples.&lt;/p&gt;
&lt;h3&gt;Install as you would any other plugin&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;
./script/plugin install git://github.com/mdeering/gravatar_image_tag.git
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Basic usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;
gravatar_image_tag('spam@spam.com'.gsub('spam', 'mdeering'), :alt =&amp;gt; 'Michael Deering')
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Configuration Points&lt;/h3&gt;
&lt;p&gt;Change the default image to your own rather then using the one set by &lt;a href="http://en.gravatar.com/" title="Online Global Avatars"&gt;Gravitar&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class="ruby"&gt;
# config/initializers/gravatar_defaults.rb
ActionView::Base.default_gravatar_image  = 'http://assets.yourhost.com/images/default_gravatar.png'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Change the default (80px x 80px) size of the gravatars on your site.&lt;/p&gt;
&lt;pre&gt;&lt;code class="ruby"&gt;
# config/initializers/gravatar_defaults.rb
ActionView::Base.default_gravatar_size  = 120
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Full usage and documentation is avalible in the &lt;a href="http://github.com/mdeering/gravatar_image_tag" title="Rails Gravatar Plugin"&gt;gravatar_image_tag plugin repository on GitHub&lt;/a&gt; .&lt;/p&gt;</description>
      <pubDate>Wed, 23 Sep 2009 11:10:00 +0000</pubDate>
      <link>http://mdeering.com/posts/022-ruby-on-rails-gravitar-plugin</link>
    </item>
  </channel>
</rss>
