I am new to rails. I understand instance variables in controller getting data from the model and displaying to the view. How can I send instance variables to the model though? I want to run computations on the variable and send it back to the view updated by the model.
I am new to rails. I understand instance variables in controller getting data from
Share
You should just pass controller instance vars to the model as method arguments. Here’s an example: