# Restful\_authentication and edge rails problems?

**URL:** <https://www.ruby-forum.com/t/restful-authentication-and-edge-rails-problems/103200>\
**Category:** Rails\
**Created:** [May 2, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-edge-rails-problems/103200 "2007-05-02T21:46:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 2, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-edge-rails-problems/103200/1 "2007-05-02T21:46:33Z")

</div>

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](http://localhost:3000/sessions/create) it all works fine

but when I go to [http://localhost:3000/signup](http://localhost:3000/signup) I get the following error  
message

Filter #\<ActionController::Filters::ClassMethods::ClassFilter:0x32115bc  
@filter=#\<ActionController::FriendlyFilter:0x3211a30  
@controller=#\<UsersController:0x4600550…

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 2, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-edge-rails-problems/103200/2 "2007-05-02T23:00:21Z")

</div>

On 5/2/07, adam [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> map.login '/login', :controller => 'sessions', :action => 'new'
> 
> ```
> 
> when i go to [http://localhost:3000/sessions/create](http://localhost:3000/sessions/create) it all works fine
> 
> but when I go to [http://localhost:3000/signup](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://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 3, 2007, 12:20am UTC](https://www.ruby-forum.com/t/restful-authentication-and-edge-rails-problems/103200/3 "2007-05-03T00:20:05Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > ```
> > map.login '/login', :controller => 'sessions', :action => 'new'
> > 
> > ```
> > 
> > when i go to [http://localhost:3000/sessions/create](http://localhost:3000/sessions/create) it all works fine
> > 
> > but when I go to [http://localhost:3000/signup](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://lighthouseapp.com)  
> [http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
> [http://mephistoblog.com](http://mephistoblog.com)
