<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Musings of a Trained Monkey: Tag rating</title>
    <link>http://www.stevelongdo.com/articles/tag/rating</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Rails acts_as_rateable plugin...</title>
      <description>I've gotten quite a bit done on rating.  Models can now use the act_as_rateable plugin to track rating information.  I've written ActionView Helpers to implement a &lt;a href="http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/"&gt;star  rating system&lt;/a&gt; and a very &lt;a href="http://www.robarov.be/rate/"&gt;cool 1..10 style bar&lt;/a&gt;.  I've done some preliminary studying of integration with the sciptaculous_slider rails plugin as well.&lt;br /&gt;&lt;br /&gt;
Remaining todo items include:
&lt;ul&gt;&lt;li&gt;&lt;strike&gt;Rake task to copy images the helpers use to public/images directory.&lt;/strike&gt;&lt;/li&gt;&lt;li&gt;&lt;strike&gt;Rake task to setup database tables for storing rating info.&lt;/strike&gt;&lt;/li&gt;&lt;li&gt;&lt;strike&gt;Convert the SQL file I've been using into a Migrations style script.&lt;/strike&gt;&lt;/li&gt;&lt;li&gt;Increase Unit Testing coverage.&lt;/li&gt;&lt;li&gt;Tying in a rate method on ActionControllers...&lt;/li&gt;&lt;/ul&gt;
This last item is giving me pause though.  I was wanting to include a simple rating_controller with the plugin and have it automatically register its route via the init.rb file.  I sought out help from the &lt;a href="http://wrath.rubyonrails.org/pipermail/rails/2006-February/016706.html"&gt;Rails mailing list&lt;/a&gt;, but no one &lt;strike&gt;could help&lt;/strike&gt; helped. I may pursue a rake task for adding the route into the routes.rb file.  I think this isn't nearly as cool as self-registering a route within the init.rb file, but I haven't had any luck with the methods I have tried so far.</description>
      <pubDate>Thu, 09 Feb 2006 19:25:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4f72d246-d618-4110-924b-cf8fc26c8a0b</guid>
      <author>Steve Longdo</author>
      <link>http://www.stevelongdo.com/articles/2006/02/09/rails-acts_as_rateable-plugin</link>
      <category>ajax</category>
      <category>rating</category>
      <category>rails</category>
      <category>plugin</category>
      <trackback:ping>http://www.stevelongdo.com/articles/trackback/74</trackback:ping>
    </item>
    <item>
      <title>Polling/Rating latest...</title>
      <description>Work has been slow going on my polling plugin.  My day job has been sapping my energy for working on &lt;a href="http://rubyonrails.org"&gt;Rails&lt;/a&gt; projects when I get home.&lt;br /&gt;&lt;br /&gt;
That said I have been able to solve some of the issues I posted about earlier and some progress has been made.  I have given the code for the Horizontal CSS bar graph to &lt;a href="http://nubyonrails.topfunky.com"&gt;topfunky&lt;/a&gt; to include in his &lt;a href="http://nubyonrails.topfunky.com/pages/css_graphs"&gt;CSSGraphs plugin&lt;/a&gt;.  I finally was able to get poll results to show up in the &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt; sidebar.  My local verison of &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt; is severly hacked to accomplish this.  Unfortunately this makes the polling code difficult to distribute.  I have decided to rethink my entire approach to the project. &lt;br /&gt;&lt;br /&gt;
I am going to rewrite polling as a &lt;a href="http://rails-engines.org/"&gt;Rails engine&lt;/a&gt; to better facilitate code sharing and obviate the need for a hacked verison of &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt;.  I will make some sort of &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt; integration with the polling engine available.  Perhaps even making the polling information available through a web service.  Before I do any of that though, I want to add a stripped down version of polling as a rating plugin for &lt;a href="http://rubyonrails.org"&gt;Rails&lt;/a&gt;.  Rating will be implemented in the style of the acts_as_* &lt;a href="http://api.rubyonrails.com/classes/ActiveRecord/Base.html"&gt;ActiveRecord&lt;/a&gt; mixins.  A model would have acts_as_rateable and the table would need a rating_id column.  I have detailed this a bit better on my &lt;a href="/pages/projects"&gt;projects page&lt;/a&gt;.  I may have to pursue rating as an &lt;a href="http://rails-engines.org/"&gt;engine&lt;/a&gt; since there would need to be some sort of rating input widget.  The experiment continues...</description>
      <pubDate>Thu, 02 Feb 2006 03:24:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0d7bd2bd-4037-4b4c-99c7-e93812c0a809</guid>
      <author>Steve Longdo</author>
      <link>http://www.stevelongdo.com/articles/2006/02/02/polling-rating-latest</link>
      <category>plugin</category>
      <category>poll</category>
      <category>rails</category>
      <category>ruby</category>
      <category>typo</category>
      <category>engines</category>
      <category>rating</category>
      <trackback:ping>http://www.stevelongdo.com/articles/trackback/70</trackback:ping>
    </item>
  </channel>
</rss>
