I'm using Rails 4 and ActiveModel:Model for an app that will do a calculation and display the result to the user. I don't want to save the calculations to a database as they will only be used once and discarded. However, I don't know how to display the results of the calculation as using redirect_to @calculation
doesn't work.
I've done some Googling and I can't find any examples of people using tableless models in a view. Is there any way to do this?