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

**URL:** <https://discuss.rubyonrails.org/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/34889>\
**Category:** rubyonrails-talk\
**Created:** [September 30, 2008, 1:37pm UTC](https://discuss.rubyonrails.org/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/34889 "2008-09-30T13:37:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hema](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@Hema](https://discuss.rubyonrails.org/u/Hema)\
**Post date:** [September 30, 2008, 1:37pm UTC](https://discuss.rubyonrails.org/t/undefined-method-authenticate-with-http-basic-for-sessionscontroller-0xb6c47c44/34889/1 "2008-09-30T13:37:55Z")

</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

```ruby
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...

```
