Ruby on Rails: passing value from view to controller -


I am new to rail. I have calculated some value in a javascript based on user input and now I want to set a variable presence in the controller function at the calculated value. Is it possible to do this or is there a better way?

Are you sending an ultimate with javascript? Then just set:

@variable = params [: calculation]

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -