# Http\_authentication plugin on edge rails

**URL:** <https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757>\
**Category:** Rails\
**Created:** [April 1, 2007, 2:07am UTC](https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757 "2007-04-01T02:07:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2007, 2:07am UTC](https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757/1 "2007-04-01T02:07:22Z")

</div>

I’m trying to use the http\_authentication plugin with edge rails, and  
I’m getting an error that I’m not sure how to deal with. I just added  
the code from the example to one of my controllers, and it’s throwing  
the following error:

protected method `render’ called for #\<SuggestionsController:  
0xb70fa390\>

#{RAILS\_ROOT}/vendor/plugins/http\_authentication/lib/  
http\_authentication/basic.rb:49:in `authentication_request' #{RAILS_ROOT}/vendor/plugins/http_authentication/lib/ http_authentication/basic.rb:17:in`request\_http\_basic\_authentication’  
#{RAILS\_ROOT}/vendor/plugins/http\_authentication/lib/  
http\_authentication/basic.rb:9:in  
`authenticate_or_request_with_http_basic' #{RAILS_ROOT}/app/controllers/suggestions_controller.rb:75:in`authenticate’  
/usr/local/bin/mongrel\_rails:16:in `load’  
/usr/local/bin/mongrel\_rails:16

It’s having an issue creating/rendering the authentication box that  
would let you put in the password.  
I’m wondering if anyone else is trying to use this on edge, and could  
offer some suggestions.

Thanks

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2007, 2:11am UTC](https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757/2 "2007-04-01T02:11:22Z")

</div>

Hi, how did you install the plugin? What were you attempting to do to  
generate the error message? This information will help others help  
you.

-Conrad

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757/3 "2007-04-01T18:47:06Z")

</div>

I installed the plugin using “piston import  
[http://svn.rubyonrails.org/rails/plugins/http\_authentication/](http://svn.rubyonrails.org/rails/plugins/http_authentication/) vendor/  
plugins/http\_authentication”

The error popped up when I went to [Custom Application Development Software for Business - Salesforce.com](http://www.site.com/suggestions/),  
which invoked the index method on the suggestions controller which I  
have protected.

When I installed the plugin the same way on an earlier version of  
rails (1.1.6 I believe) I didn’t get the error, but just the response  
“HTTP Basic: Access denied.” without an option to log in.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 1, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/http-authentication-plugin-on-edge-rails/90757/4 "2007-04-01T19:15:11Z")

</div>

I just created a test project with rails 1.2.3 and the plugin works  
exactly as I would expect it to, so I believe this is an issue with  
the interaction with edge rails. I understand that that it might be  
failed because something that has been added or removed, so again, I’m  
just asking to see if anyone else is currently using it in that  
capacity. I’d like to continue to develop this site using edge, but  
I’ll drop back to 1.2.3 if I must.

Thanks.
