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

Join 132,392 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,251 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
post 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

Go to the top of the page

Kingbradley6
post 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 07:15AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month