You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Does anyone have a calculator gem. I need one that easily embeds into the view.
Walter Lee Davis
unread,
Jan 10, 2017, 10:53:46 PM1/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
What do you need to calculate, and what will you do with the result?
Walter
> On Jan 10, 2017, at 10:35 PM, David Williams <techse...@gmail.com> wrote:
>
> Does anyone have a calculator gem. I need one that easily embeds into the view.
>
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
I am going to allow the user to use it on the fly. They'll just calculate basic math.
Walter Lee Davis
unread,
Jan 11, 2017, 5:46:39 PM1/11/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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
David Williams
unread,
Jan 14, 2017, 6:30:53 PM1/14/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message