Hi, Has anyone any idea how to solve this: I have the following in my routes.rb # RESTful authentication map.resources :users, :sessions map.signup ''/signup'', :controller => ''users'', :action => ''new'' map.login ''/login'', :controller => ''sessions'', :action => ''new'' when i go to http://localhost:3000/sessions/create it all works fine but when I go to http://localhost:3000/signup I get the following error message Filter #<ActionController::Filters::ClassMethods::ClassFilter:0x32115bc @filter=#<ActionController::FriendlyFilter:0x3211a30 @controller=#<UsersController:0x4600550............. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5/2/07, adam <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > Has anyone any idea how to solve this: > > I have the following in my routes.rb > # RESTful authentication > map.resources :users, :sessions > > map.signup ''/signup'', :controller => ''users'', :action => ''new'' > map.login ''/login'', :controller => ''sessions'', :action => ''new'' > > > when i go to http://localhost:3000/sessions/create it all works fine > > but when I go to http://localhost:3000/signup I get the following error > message > > Filter #<ActionController::Filters::ClassMethods::ClassFilter:0x32115bc > @filter=#<ActionController::FriendlyFilter:0x3211a30 > @controller=#<UsersController:0x4600550.............I can''t tell because the message is cut off, but it looks like your friendly filter is halting the request. That has nothing to do with the restful_auth plugin. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Rick, cheers for taking a look at that, turns out that it is a problem with the acts_as_friendly_param plugin. in particular this mixin ActionController::Base.send :around_filter, ActionController::FriendlyFilter.new Thanks, josh Rick Olson wrote:> On 5/2/07, adam <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> map.login ''/login'', :controller => ''sessions'', :action => ''new'' >> >> >> when i go to http://localhost:3000/sessions/create it all works fine >> >> but when I go to http://localhost:3000/signup I get the following error >> message >> >> Filter #<ActionController::Filters::ClassMethods::ClassFilter:0x32115bc >> @filter=#<ActionController::FriendlyFilter:0x3211a30 >> @controller=#<UsersController:0x4600550............. > > I can''t tell because the message is cut off, but it looks like your > friendly filter is halting the request. That has nothing to do with > the restful_auth plugin. > > -- > Rick Olson > http://lighthouseapp.com > http://weblog.techno-weenie.net > http://mephistoblog.com-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---