Restful_authentication and edge rails problems?

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…

On 5/2/07, adam [email protected] 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 O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

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 O. wrote:

On 5/2/07, adam [email protected] 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 O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs