Closed millisami closed 13 years ago
The plugin is javascript framework agnostic, which means it doesn't really require you to use jquery or prototype. It's using rails helper.
The wrapper_dom_id
simply concatenates the passed params to return an id.
In rails 3.1 RJS has been removed so my controller now looks like this.
def rate
@location = Location.find(params[:id])
@location.rate(params[:stars], current_user, params[:dimension])
respond_to do |format|
format.js { render :partial => "rating" }
end
end
and _rating.html.erb
<%= ratings_for @location, current_user %>
Jspooner, why the conditional in that? Looks like it does the same thing either way?
Since I'm using jQuery and Rails3, this piece of controller code is not updated in the README
So, I created a custom .js.erb file but I'm confused what that
.wrapper_dom_id(params)
method returns? Can you plz add a jquery version of the aboverender :update do |page|
code block?