Skip to content

Commit

Permalink
Doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarjs committed May 21, 2010
1 parent 4154f64 commit db13aaa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.textile
Expand Up @@ -64,8 +64,7 @@ class Car < ActiveRecord::Base
end
</pre>

Then you need to add a call @ajaxful_rater@ in the user model. This includes a simple line so
you can add it _by your own_ as well (@has_many :rates@).
Then you need to add a call @ajaxful_rater@ in the user model to make your @User@ model able to rate objects.

<pre>
class User < ActiveRecord::Base
Expand Down Expand Up @@ -122,9 +121,13 @@ correct action in your controller:
<%= ratings_for @article, :remote_options => {:url => your_rate_path(@article)} %>
</pre>

h3. Important!

*To display the stars properly you need to add a call in the head of your layout, which will generate the
required CSS style for the list. Also don't forget to include the javascripts.*

It's also important to note that this call MUST be within your head tags in your layout, as for now it seems to doesn't work with the @content_for@ tag.

<pre>
#within the head tags of your layout...
<%= javascript_include_tag :defaults %>
Expand Down

0 comments on commit db13aaa

Please sign in to comment.