Ruby on Rails Thursday, November 25, 2010

On 25 November 2010 08:24, chowdary <patchava9999@gmail.com> wrote:
> Excel sheet having  :
> Firstname   Lastname
> venkat      patchava
>
> How to map Excel sheet data to my applicatioin in ruby.
> Firstname :   venkat
> Lastname  :   patchava

Do you mean that you want Rails to read directly from the spreadsheet
(in which case Fallen Phoenix's suggestion of using the spreadsheet
gem may be the way to go) or are you just trying to seed the db from
the spreadsheet. If the latter then you could just export the data as
csv and import it into the database (by coding it in seed.rb and then
rake db:seed for example).

Colin

--
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@googlegroups.com.
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.

No comments:

Post a Comment