Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,337 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,820 people online right now. Registration is fast and FREE... Join Now!




code for currency conversion

 
Reply to this topicStart new topic

code for currency conversion

rutuja_dive
30 Aug, 2008 - 12:40 AM
Post #1

New D.I.C Head
*

Joined: 30 Aug, 2008
Posts: 1

Hi ,
I am new in ruby on rails, I am trying to do the currency conversion using ruby for that I have installed one gem called 'currency'.Any one please help me out and tell how to use it or how to write the code for currency conversion in ruby.Please reply asap.Waiting for your reply. Thankyou.
User is offlineProfile CardPM
+Quote Post

Kingbradley6
RE: Code For Currency Conversion
30 Aug, 2008 - 02:49 PM
Post #2

D.I.C Head
Group Icon

Joined: 10 Jul, 2008
Posts: 116



Thanked: 1 times
Dream Kudos: 100
My Contributions
Well I would take the long road and write a different method for a different currency. That way you can just do a simple calculation using what the user inputted, get currency and then that method will divide the inputted number by the exchange rate (although this way you would have to find the exchange rate out manually).

However I don't know of the gem currency, sorry this isn't exactly what you were looking for.

My method is long and not entirely professional but it will work.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:03AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month