You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
I have checked the other issues with MissingRateRoute errors and I am compliant with all results.
Users are raters and rateable. The user controller reads:
def rate
@user = @object_to_be_rated
@user.rate(params[:stars], @winner.user, params[:dimension])
#AJAX page building
render :update do |page|
page.replace_html @user.wrapper_dom_id(params), ratings_for(@user, params.merge(:wrap => false))
page.visual_effect :highlight, @user.wrapper_dom_id(params)
end
end
The routes.rb has the line:
map.resources :users, :member => {:rate => :post}
The view shows:
<%= ratings_for @object_to_be_rated, @current_user, :show_user_rating => true, :wrap => false, :allow_update => true, :dimension => :seller_rating, :method => :post %>
I am ready to give up. Cannot fathom what else to do...
The text was updated successfully, but these errors were encountered: