Hi All,
I''m fairly new to RoR and I''m having trouble using the plugin
SslRequirement.
I have an ApplicationController which includes the SslRequirement as so:
class ApplicationController < ActionController::Base
include SslRequirement
I have another controller that inherits from ApplicationController
class ProductsController < ApplicationController
and within that I have some actions that will require ssl:
before_filter :ssl_required, :only => [ :buy, :show ]
When I try an view either the show or buy pages I get the error:
undefined method `ssl_required'' for
#<ProductsController:0x5771c58>
Using public_methods I have done logged output of the controller''s
interface to see if the ssl_required method is available, it is not part
of the public interface. However using protected_methods I can see that
the ssl_required? and ssl_allowed? methods are available so it has
inherited correctly.
So, does anyone know why I might be experiencing this?
Thanks in advance
Adrian
I can however see in
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---