Re: I have a csv file i need to upload and for each row check that a number of columns do not match

Hi All,

I have a csv file i need to upload and for each row check that a number
of columns do not match a certain criteria

Is there a way I can do this in ruby?

Kind Regards

Gurdipe

On 12 April 2012 00:54, Gurdipe D. [email protected] wrote:

Hi All,

I have a csv file i need to upload and for each row check that a number
ofcolumnsdo not match a certaincriteria

Is there a way I can do this in ruby?

Yes of course. Start by working out how to upload the file. Google
rails file upload to get suggestions.

Colin

On 12 April 2012 00:54, Gurdipe D. [email protected] wrote:

I have a csv file i need to upload and for each row check that a number
ofcolumnsdo not match a certaincriteria

Is there a way I can do this in ruby?

Yes.

Which bit are you stuck on? Uploading a file? Reading each row? or
Checking the certain criteria?

hi i have just started to look at it

the area i think i will struggle on is making sure i can search the
array
for the criteria i have

gurdipe

On 12 April 2012 09:56, Gurdipe D. [email protected] wrote:

hi i have just started to look at it

the area i think i will struggle on is making sure i can search the array
for the criteria i have

That should be much easier than uploading the file. I think some
basic Ruby tutorials would be in order (Ruby rather then Ruby on Rails
as this is a Ruby issue not a Rails one). You cannot develop a Rails
app without a good knowledge of Ruby.

Colin

Is there a way I can do this in ruby?
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.


gplus.to/clanlaw