A little trick is to type rake routes in your terminal to view the routes available. but it seems that you should be able to call accept_invitation_url(:token => "your token")
-J On Wed, Mar 16, 2011 at 11:06 AM, David Kahn <d...@structuralartistry.com>wrote: > Stumped on this, can anyone help: > > When I ask for 'accept_invitation_url', I get: > ActionController::RoutingError Exception: No route matches > {:controller=>"invitations", :action=>"accept"} > > However as far as I can tell it should exist. I dont get it. I have > virtually the same structure with another app and it works fine. > > > class InvitationsController < ApplicationController > ... > def accept > @invitation = Invitation.find_by_token(params[:token]) > end > end > > > MyApp::Application.routes.draw do > ... > resources :invitations > match "/invitations/accept/:token" => "invitations#accept", :as => > :accept_invitation > ... > end > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- Jazmin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.