Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

MissingRateRoute error - the other solutions all done #44

Open
RichardJordan opened this issue Oct 19, 2010 · 2 comments
Open

MissingRateRoute error - the other solutions all done #44

RichardJordan opened this issue Oct 19, 2010 · 2 comments

Comments

@RichardJordan
Copy link

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...

@odorcicd
Copy link

Perhaps share a stripped down version here on git, I could look into it.

@edgarjs
Copy link
Owner

edgarjs commented Feb 1, 2011

I think this is related to #41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants