erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-19 06:33 UTC
Is there a way to import Exchange rates automatically?
Hi I want to show product prices in many currencies Is there a way to import Exchange rates automatically? Thanks Erez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
felipekk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-19 09:57 UTC
Re: Is there a way to import Exchange rates automatically?
If you can find a web service that has the data you need, you can import it to your application easily. Since exchange rates is something that changes daily, importing once will not work as expected, it has to be something that will allow you to update it frequently (daily probably). On Apr 18, 11:33 pm, "erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > I want to show product prices in many currencies > Is there a way to import Exchange rates automatically? > Thanks > Erez--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-19 21:26 UTC
Re: Is there a way to import Exchange rates automatically?
Thanks felipekk This is a web service I want to conect to: http://www.bankisrael.gov.il/heb.shearim/currency.php?curr=01 how do i do it? Erez On 19 אפריל, 12:57, "felip...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <felip...@gmail.com> wrote:> If you can find a web service that has the data you need, you can > import it to your application easily. > > Since exchange rates is something that changes daily, importing once > will not work as expected, it has to be something that will allow you > to update it frequently (daily probably). > > On Apr 18, 11:33 pm, "erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Hi > > I want to show product prices in many currencies > > Is there a way to import Exchange rates automatically? > > Thanks > > Erez-הסתר טקסט מצוטט- > > -הראה טקסט מצוטט---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
George Bailey
2008-Apr-20 07:47 UTC
Re: Is there a way to import Exchange rates automatically?
On Apr 19, 2008, at 3:26 PM, erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Thanks felipekk > This is a web service I want to conect to: > http://www.bankisrael.gov.il/heb.shearim/currency.php?curr=01 > how do i do it?What do you have so far? Where are you getting stuck? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-20 15:01 UTC
Re: Is there a way to import Exchange rates automatically?
Hi George My app is about Real Estate I show assets prices is NIS and I want to show prices in Dollars also <div class="price"><%=h number_to_currency(@asset.price_shekel, :unit => "₪") %></div> <div class="price"><%=h number_to_currency(@asset.price_shekel.to_f / @dolar.to_f) %></div> @dolar = 3.425 I need to import (automatically) the Dollar rate once a day and store it in my app DB <RATE>3.425</RATE> i am sure this is simple how ever I am new to programing Thanks Erez On 20 אפריל, 10:47, George Bailey <listcatc...@gmail.com> wrote:> On Apr 19, 2008, at 3:26 PM, erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > Thanks felipekk > > This is a web service I want to conect to: > >http://www.bankisrael.gov.il/heb.shearim/currency.php?curr=01 > > how do i do it? > > What do you have so far? Where are you getting stuck?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
George Bailey
2008-Apr-20 16:06 UTC
Re: Is there a way to import Exchange rates automatically?
On Apr 20, 2008, at 9:01 AM, erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Hi George > My app is about Real Estate > I show assets prices is NIS > and I want to show prices in Dollars also > > <div class="price"><%=h number_to_currency(@asset.price_shekel, :unit > => "₪") %></div> > <div class="price"><%=h number_to_currency(@asset.price_shekel.to_f / > @dolar.to_f) %></div> > > @dolar = 3.425 > > I need to import (automatically) the Dollar rate once a day and store > it in my app DB > <RATE>3.425</RATE> > > i am sure this is simple how ever I am new to programingWhen programming, the way to solve a large problem is to break it down into smaller pieces, and then solve those smaller problems. Right now you want to "import exchange rates." You should break that up into something like: - connect to the server - log in - send request - receive reply - parse reply - store reply It may be that even some of those smaller problems should be broken into even smaller pieces. The code you posted above is only the presentation of the data. Before you can present it you''ve got to do all those other things, and probably a few more that I didn''t list. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
erez.bens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-May-24 15:57 UTC
Re: Is there a way to import Exchange rates automatically?
More about this here: http://www.sitepoint.com/forums/showthread.php?t=544298 Erez On Apr 20, 7:06 pm, George Bailey <listcatc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 20, 2008, at 9:01 AM, erez.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > > > > > > Hi George > > My app is about Real Estate > > I show assets prices is NIS > > and I want to show prices in Dollars also > > > <div class="price"><%=h number_to_currency(@asset.price_shekel, :unit > > => "₪") %></div> > > <div class="price"><%=h number_to_currency(@asset.price_shekel.to_f / > > @dolar.to_f) %></div> > > > @dolar = 3.425 > > > I need to import (automatically) the Dollar rate once a day and store > > it in my app DB > > <RATE>3.425</RATE> > > > i am sure this is simple how ever I am new to programing > > When programming, the way to solve a large problem is to break it down > into smaller pieces, and then solve those smaller problems. > Right now you want to "import exchange rates." > > You should break that up into something like: > > - connect to the server > - log in > - send request > - receive reply > - parse reply > - store reply > > It may be that even some of those smaller problems should be broken > into even smaller pieces. > The code you posted above is only the presentation of the data. Before > you can present it you''ve got to do all those other things, and > probably a few more that I didn''t list.- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---