Displaying 1 result from an estimated 1 matches for "secure_create".
2008 Feb 24
3
params checking in controller before real action
I want to perform certain action in controller based on request
parameters. Is there some way to access params in controller before a
real action? Like in following code:
class UsersController < ApplicationController
# params[:type] in here does not work
ssl_required :create if params[:type]=="something"
def create
# params[:type] works in here.
end
end
If not,