Gurdipe Dosanjh
2012-Apr-11 23:54 UTC
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
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/9rGOy7mm7kcJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Apr-12 07:56 UTC
Re: 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
On 12 April 2012 00:54, Gurdipe Dosanjh <rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Michael Pavling
2012-Apr-12 07:58 UTC
Re: 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
On 12 April 2012 00:54, Gurdipe Dosanjh <rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Gurdipe Dosanjh
2012-Apr-12 08:56 UTC
Re: 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
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 08:58, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 12 April 2012 00:54, Gurdipe Dosanjh <rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Apr-12 10:09 UTC
Re: 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
On 12 April 2012 09:56, Gurdipe Dosanjh <rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 haveThat 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> > gurdipe > > > On 12 April 2012 08:58, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On 12 April 2012 00:54, Gurdipe Dosanjh <rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- gplus.to/clanlaw -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.