# SslRequirement Problem

**URL:** <https://www.ruby-forum.com/t/sslrequirement-problem/140232>\
**Category:** Rails\
**Created:** [June 12, 2008, 3:07am UTC](https://www.ruby-forum.com/t/sslrequirement-problem/140232 "2008-06-12T03:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyterage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ecb155/32.png) [@nyterage](https://www.ruby-forum.com/u/nyterage)\
**Post date:** [June 12, 2008, 3:07am UTC](https://www.ruby-forum.com/t/sslrequirement-problem/140232/1 "2008-06-12T03:07:04Z")

</div>

Hello everyone,  
I’m pretty new to the RoR’s thing and am having a problem setting up  
SslRequirement plugin.

I have installed the SslRequirement plugin and added it to my  
application\_controller.rb with include SslRequirement

However, when I try and do “ssl\_required :process\_payment”  
I get the following error:

undefined method `ssl\_required’ for PaymentController:Class

For some reason it’s not seeing the ssl\_required method… any ideas??

thanks,  
nyte

---

<div class="post-metadata">

**Author:** ![nyterage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ecb155/32.png) [@nyterage](https://www.ruby-forum.com/u/nyterage)\
**Post date:** [June 12, 2008, 8:49am UTC](https://www.ruby-forum.com/t/sslrequirement-problem/140232/2 "2008-06-12T08:49:22Z")

</div>

go to script/console:  
p = PaymentController.new

p.public\_methods.sort

Do you see ssl\_required method in the output?

> undefined method `ssl\_required’ for PaymentController:Class
> 
> For some reason it’s not seeing the ssl\_required method… any ideas??

–  
[http://www.rubyplus.org/](http://www.rubyplus.org/)  
Free Ruby and Rails Screencasts

---

<div class="post-metadata">

**Author:** ![nyterage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ecb155/32.png) [@nyterage](https://www.ruby-forum.com/u/nyterage)\
**Post date:** [June 12, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/sslrequirement-problem/140232/3 "2008-06-12T17:22:14Z")

</div>

Bala P. wrote:

> go to script/console:  
> p = PaymentController.new
> 
> p.public\_methods.sort
> 
> Do you see ssl\_required method in the output?
> 
> > undefined method `ssl\_required’ for PaymentController:Class
> > 
> > For some reason it’s not seeing the ssl\_required method… any ideas??
> 
> –  
> [http://www.rubyplus.org/](http://www.rubyplus.org/)  
> Free Ruby and Rails Screencasts

The instructions you gave bring up this error:

No there is no method by that name there… hmmmmm

Also, someone told me to add the path in the config/enviorment.rb file  
but I thought by default it loads all vendor/plugins
