# Undefined method \`authenticate\_with\_http\_basic' for #\<SessionsController:0xb6c47c44\>

**URL:** <https://www.ruby-forum.com/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/149853>\
**Category:** Rails\
**Created:** [September 30, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/149853 "2008-09-30T15:48:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hema\_mca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Post date:** [September 30, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/149853/1 "2008-09-30T15:48:15Z")

</div>

I am developing the rails with the flex… I am following the tutorial  
FLEXIBLE RAILS - PETER ARMSTRONG .  
I followed the commands as specified in the tutorial… my rails version  
is  
1.2.3  
and the ruby 1.8.6

I created the restful authentication and i specified the  
authentication…  
ruby script\generate authenticated user sessions  
…output omitted…

I specified everything… It worked fine upto 500 pages…  
later,  
class SessionsController \< ApplicationController

# Be sure to include AuthenticationSystem in Application Controller

instead

# include AuthenticatedSystem

skip\_before\_filter :login\_required

He told me to comment the authenticated system and use skip\_before… i  
done  
it and the  
" include AuthenticatedSystem " line added to the application.rb file…  
now i created the new migration tasks and created the controller  
when i need to access the link ’ [http://localhost:3000/session](http://localhost:3000/session) ’  
it is throwing the exception

undefined method `authenticate\_with\_http\_basic’ for  
#SessionsController:0xb6c47c44

I changed the rails version and tried (2.0.1)  
and i reloded the authentication in the application…  
and tried in many ways but i can’t find the solution  
Can Anybody Please help me regarding this error… where i am doing  
worng…
