Ruby on Rails Wednesday, January 11, 2017

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

> On Jan 11, 2017, at 11:56 AM, David Williams <techsecureco@gmail.com> wrote:
>
> I am going to allow the user to use it on the fly. They'll just calculate basic math.
>
> On Tuesday, January 10, 2017 at 10:53:46 PM UTC-5, Walter Lee Davis wrote:
> What do you need to calculate, and what will you do with the result?
>
> Walter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/A2809289-1C79-4AF9-9411-ADD9D23C380A%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment