I have made three scaffold generated controllers in my project by
following three commands

ruby script/generate scaffold amain a:integer
ruby script/generate scaffold bmain b:integer
ruby script/generate scaffold cmain c:integer


I want to take three different inputs( a,b,c) on three different pages
and then on the third page once a user clicks the button "Calculate" a
value based on following equation has to be generated.

value = a + b*x1 + c*x2

here,
 x1 is set on the page where input "a" is set
and x2 is set on the page where input "b" is set

x1 and x2 are virtual attributes and hence do not exist in any of the
data models. Value of these coefficients is not constant and in fact
depends on several dynamic factor such as the  date and time when a/b
was set.

I want to know how to pass on the values of "x1" and "x2" from one
controller to another. These attributes are not the part of model of
"a" or model of "b".  I can not keep them in models.





Thanks
vipin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to