I'm concerned this may not be the best way to go. in my /app/controllers/application.rb file i've added
def ssl_required? return false if ENV['RAILS_ENV'] == true end So that I can still run my application on webrick without https in development mode. But, when I want ssl_required to work on all my controllers and utilize the method below, my ssl_required? method in the application helper doesn't function as intended. the ssl_required in the individual controller takes precedence. it is too bad one can't just add ssl_required :all Does anyone know how to solve both problems in the best way possible? Thank you! Pål Bergström wrote: > Izidor Jerebic wrote: >> You can define a protected method in your controller, which will make >> every action in this controller and all its subclasses only available >> through ssl: >> >> def ssl_required? >> true >> end >> >> >> izidor >> >> >> On 5.9.2008, at 16:29, P�l Bergstr�m wrote: > > Thanks :-) -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

