Colin Law wrote in post #985599: > On 5 March 2011 03:47, korssane korssane <[email protected]> wrote: >> Hi Folks, >> i want to add a table with some currecny exchange values that i have to >> update 2-3 times a day. > > Do you mean a table on a web page or a table in the database? > >> the problem is i have to update the file and restart the webserver to >> have the change taking effect . > > I presume from this that you mean the data is in a file. > >> >> Is there another way to do it on a simple file without having to restart >> the webserver ? > > One solution is to put the currency data in a table in the database. > Write a rake task to read from the file and update the db and run this > when the file changes. You could just put the update code in > db/seeds.rb and then run rake db:seed (which runs seeds.rb). > > Colin
thanks Colin for the logical suggestion, however i am new in RoR. do you have any tutos/video on how to proceed with tables and write rake task / tuto on hw to use seeds.rb? thanks -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

