You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssl_requirement's ssl_required doesn't work for "subfolder controllers", eg class Text::WriteController < ApplicationController ... located at /app/controllers/text.
Instead of using (sample for def index and def create):
ssl_required :index, :create
you can use this as a workaround:
def ssl_required?
return true if %w{index create}.any? {|a| a == params[:action]}
end
ssl_requirement's ssl_required doesn't work for "subfolder controllers", eg class Text::WriteController < ApplicationController ... located at /app/controllers/text.
Instead of using (sample for def index and def create):
ssl_required :index, :create
you can use this as a workaround:
def ssl_required?
return true if %w{index create}.any? {|a| a == params[:action]}
end