Re: 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

9 views
Skip to first unread message

Gurdipe Dosanjh

unread,
Apr 11, 2012, 7:54:48 PM4/11/12
to rubyonra...@googlegroups.com
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

Colin Law

unread,
Apr 12, 2012, 3:56:03 AM4/12/12
to rubyonra...@googlegroups.com
On 12 April 2012 00:54, Gurdipe Dosanjh <rhomob...@gmail.com> wrote:
> 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?

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

Colin

Michael Pavling

unread,
Apr 12, 2012, 3:58:10 AM4/12/12
to rubyonra...@googlegroups.com
On 12 April 2012 00:54, Gurdipe Dosanjh <rhomob...@gmail.com> wrote:
> 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?

Yes.

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

Gurdipe Dosanjh

unread,
Apr 12, 2012, 4:56:33 AM4/12/12
to rubyonra...@googlegroups.com
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


--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Colin Law

unread,
Apr 12, 2012, 6:09:01 AM4/12/12
to rubyonra...@googlegroups.com
On 12 April 2012 09:56, Gurdipe Dosanjh <rhomob...@gmail.com> 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

--
gplus.to/clanlaw

Reply all
Reply to author
Forward
0 new messages