SslRequirement Problem

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

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/
Free Ruby and Rails Screencasts

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