i m new to ROR3.0
controller code
def create
@data = Checking.check(arg1,arg2,arg3,agr4)
end
model code
def self.check
@vl1=arg1
@vl2=arg2
@vl3=arg3
@vl4=arg4
end
how to pass value from controller to model
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Declare the arguments list for the model class method.