<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ajax CSS Star Rating with acts_as_rateable</title>
	<atom:link href="http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/</link>
	<description>Late nights eventually pay off</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:05:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ayo philip</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2991</link>
		<dc:creator>Ayo philip</dc:creator>
		<pubDate>Tue, 01 Dec 2009 07:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2991</guid>
		<description>How, did you achieve the &quot;special effect&quot; with your tags [right under your search form] ?
Thanks.</description>
		<content:encoded><![CDATA[<p>How, did you achieve the &#8220;special effect&#8221; with your tags [right under your search form] ?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sara</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2939</link>
		<dc:creator>Sara</dc:creator>
		<pubDate>Wed, 12 Aug 2009 17:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2939</guid>
		<description>I&#039;m not sure if it&#039;s just me, but some of the code for the partial seems to be missing in the tutorial.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if it&#8217;s just me, but some of the code for the partial seems to be missing in the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Wise</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2566</link>
		<dc:creator>Chris Wise</dc:creator>
		<pubDate>Wed, 07 Jan 2009 02:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2566</guid>
		<description>No need to take a look at it... I figured out what the CSS issue was. It appears that the &quot;background&quot; shorthand in star_rating is ignored in most other browsers other than IE. I  had to explicitly repeat the background-image instruction for each of the other properties (hover, current_rating) in order for it to work with the rest of the planet. Pretty weird, but very, very happy with  the results now. Of course what was really odd as well was that this page works correctly as is.</description>
		<content:encoded><![CDATA[<p>No need to take a look at it&#8230; I figured out what the CSS issue was. It appears that the &#8220;background&#8221; shorthand in star_rating is ignored in most other browsers other than IE. I  had to explicitly repeat the background-image instruction for each of the other properties (hover, current_rating) in order for it to work with the rest of the planet. Pretty weird, but very, very happy with  the results now. Of course what was really odd as well was that this page works correctly as is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2565</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 07 Jan 2009 01:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2565</guid>
		<description>Grr... sorry I meant port 3001 not port 3000</description>
		<content:encoded><![CDATA[<p>Grr&#8230; sorry I meant port 3001 not port 3000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2564</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 06 Jan 2009 19:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2564</guid>
		<description>Ryan,

Great tutorial - I had read the others, but I really like what you were able to do to make things a little more dynamic. I&#039;m pretty sure I have a good understanding of how this is all supposed to work.

I&#039;ve got it implemented on our dev site (www.profoundponderings.com:3000) and the problem I am having is that it works fine on IE under Windows, but doesn&#039;t display the images on any other browser (FF, Opera on Windows, Safari, FF on Mac). The mystifying part to me though is that I am looking right at your example here on this page and I can definitely see the images and can operate the rating etc.

I went and compared your CSS with the one you display in the article and have found them to be pretty much identical (some meaningless parameters reordered). Maybe I missing something obvious, but I thought you might be able to tell quickly from a peek at it (I know this is asking a lot, but I am pretty stumped after a number of hours). The only difference is that I added a border around the UL just to be sure it was on the page somewhere.</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>Great tutorial &#8211; I had read the others, but I really like what you were able to do to make things a little more dynamic. I&#8217;m pretty sure I have a good understanding of how this is all supposed to work.</p>
<p>I&#8217;ve got it implemented on our dev site (www.profoundponderings.com:3000) and the problem I am having is that it works fine on IE under Windows, but doesn&#8217;t display the images on any other browser (FF, Opera on Windows, Safari, FF on Mac). The mystifying part to me though is that I am looking right at your example here on this page and I can definitely see the images and can operate the rating etc.</p>
<p>I went and compared your CSS with the one you display in the article and have found them to be pretty much identical (some meaningless parameters reordered). Maybe I missing something obvious, but I thought you might be able to tell quickly from a peek at it (I know this is asking a lot, but I am pretty stumped after a number of hours). The only difference is that I added a border around the UL just to be sure it was on the page somewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2555</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Mon, 29 Dec 2008 18:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2555</guid>
		<description>Hey Ryan, good tutorial and info. Wanted to send praise and encouragement for rolling this work into a plugin -- I know it would be very popular. Cheers, R</description>
		<content:encoded><![CDATA[<p>Hey Ryan, good tutorial and info. Wanted to send praise and encouragement for rolling this work into a plugin &#8212; I know it would be very popular. Cheers, R</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2537</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 09 Dec 2008 16:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2537</guid>
		<description>&lt;a href=&quot;#comment-2536&quot; rel=&quot;nofollow&quot;&gt;@Antonios&lt;/a&gt; -

Antonios,

Thanks for the comment. Yeah, it is quite out of date and not code in the RailsWay. I&#039;m intending to make it into a plugin, but it&#039;s taking a while :(

Ryan</description>
		<content:encoded><![CDATA[<p><a href="#comment-2536" rel="nofollow">@Antonios</a> -</p>
<p>Antonios,</p>
<p>Thanks for the comment. Yeah, it is quite out of date and not code in the RailsWay. I&#8217;m intending to make it into a plugin, but it&#8217;s taking a while <img src='http://blog.aisleten.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonios</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2536</link>
		<dc:creator>Antonios</dc:creator>
		<pubDate>Tue, 09 Dec 2008 15:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2536</guid>
		<description>Hey Ryan.

First of all, great tutorial!!! Im still a Rails newbie and working on my first app using google maps.

But I feel it is &quot;out of date&quot;. You think there will be an updated version comming?

Thanks</description>
		<content:encoded><![CDATA[<p>Hey Ryan.</p>
<p>First of all, great tutorial!!! Im still a Rails newbie and working on my first app using google maps.</p>
<p>But I feel it is &#8220;out of date&#8221;. You think there will be an updated version comming?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2472</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 19 Nov 2008 17:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2472</guid>
		<description>&lt;a href=&quot;#comment-2459&quot; rel=&quot;nofollow&quot;&gt;@Richard&lt;/a&gt; -

Thanks for the info!</description>
		<content:encoded><![CDATA[<p><a href="#comment-2459" rel="nofollow">@Richard</a> -</p>
<p>Thanks for the info!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2459</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 12 Nov 2008 06:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.aisleten.com/2007/05/03/ajax-css-star-rating-with-acts_as_rateable/#comment-2459</guid>
		<description>To get this to work out with Rails 2.1.2 I had to:

rather than use the old migration, you can just issue script/generate acts_as_rateable_migration and then migrate

RatingController:  rateable.rate_it params[:rating], params[:session_id]

I&#039;m using session for the user_id as I need anonymous rating..it&#039;s not going to be perfect but it seems to do alright.

Routes, at this time i just need the rate action

map.rate &#039;/rate&#039;, :controller =&gt; &#039;rating&#039;, :action =&gt; &#039;rate&#039;

I had to change the link_to_remote in the partial view to
 {
 :controller =&gt; &quot;rating&quot;, :action =&gt; &quot;rate&quot;,
 :id =&gt; asset.id, :rating =&gt; x, :rateable_type =&gt; asset.class.to_s
 },
 :html =&gt; { :class =&gt; &quot;#{@convert[x-1]}-stars&quot;, :name =&gt; &quot;#{pluralize(x,&#039;star&#039;)} out of 5&quot;,
 :title =&gt; &quot;Rate this a #{x} out of 5&quot; } ) %&gt;

Without this tutorial, as this is my first ever Rails app, I would&#039;ve been looking around for quite some time.

Thanks</description>
		<content:encoded><![CDATA[<p>To get this to work out with Rails 2.1.2 I had to:</p>
<p>rather than use the old migration, you can just issue script/generate acts_as_rateable_migration and then migrate</p>
<p>RatingController:  rateable.rate_it params[:rating], params[:session_id]</p>
<p>I&#8217;m using session for the user_id as I need anonymous rating..it&#8217;s not going to be perfect but it seems to do alright.</p>
<p>Routes, at this time i just need the rate action</p>
<p>map.rate &#8216;/rate&#8217;, :controller =&gt; &#8216;rating&#8217;, :action =&gt; &#8216;rate&#8217;</p>
<p>I had to change the link_to_remote in the partial view to<br />
 {<br />
 :controller =&gt; &#8220;rating&#8221;, :action =&gt; &#8220;rate&#8221;,<br />
 :id =&gt; asset.id, :rating =&gt; x, :rateable_type =&gt; asset.class.to_s<br />
 },<br />
 :html =&gt; { :class =&gt; &#8220;#{@convert[x-1]}-stars&#8221;, :name =&gt; &#8220;#{pluralize(x,&#8217;star&#8217;)} out of 5&#8243;,<br />
 :title =&gt; &#8220;Rate this a #{x} out of 5&#8243; } ) %&gt;</p>
<p>Without this tutorial, as this is my first ever Rails app, I would&#8217;ve been looking around for quite some time.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
