Permalink
Browse files

readme changed

  • Loading branch information...
1 parent 2a58f0a commit 1ecb68eb2da4343af8d9a33783f94b52ab6c999d @muratguzel committed Jan 18, 2013
Showing with 0 additions and 23 deletions.
  1. +0 −23 README.md
View
@@ -87,29 +87,6 @@ Speed : <%= rating_for @car, "engine", :star => 7 %>
Speed : <%= rating_for @car, "price" %>
```
-### Important
-
-By default rating_for tries to call devise current_user method as the rater instance in the rater_controller.rb file. You can change the current_user method
-as you will.
-
-```ruby
-#rater_controller.rb
-
-def create
- if current_user.present?
- obj = eval "#{params[:klass]}.find(#{params[:id]})"
- if params[:dimension].present?
- obj.rate params[:score].to_i, current_user.id, "#{params[:dimension]}"
- else
- obj.rate params[:score].to_i, current_user.id
- end
-
- render :json => true
- else
- render :json => false
- end
-end
-```
## Feedback
If you find bugs please open a ticket at [https://github.com/muratguzel/letsrate/issues](https://github.com/muratguzel/letsrate/issues)

0 comments on commit 1ecb68e

Please sign in to comment.