Calculator Solution?

Does anyone have a calculator gem. I need one that easily embeds into the view.

What do you need to calculate, and what will you do with the result?

Walter

I am going to allow the user to use it on the fly. They’ll just calculate basic math.

In that case, look at JavaScript calculators, this is nothing related to Rails, I'm afraid. Drop the JavaScript in the vendor/assets folder, make sure you link a <script> tag to it on the page where you want it to appear, and you should be done.

Here's one I wrote many years ago: http://scripty.walterdavisstudio.com/calculator/ You can't drop this into a jQuery project because it uses Prototype.js and the two don't get along. But it's fun and instructive to read the code.

Walter

Very nice. Thank you.