Ruby on Rails Thursday, June 28, 2012

please try  http://ruby.railstutorial.org 

在 2012年6月27日星期三UTC-7下午12时50分52秒,Ruby-Forum.com User写道:

thanks for the link, i've bought some RoR books to get further info, but
if you have some websites with some easy to use examples for a beginner
am most welcome to accept them :)

--
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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/w0PdcuE8rLIJ.
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-US.

Ruby on Rails

Hello,

I know in ruby that when you want to find the size of your query say

[1,2,3,4,5,6] would provide 6 as the total size, length, or even count.

When I try to use size, length, or count on my application, I would get
a pretty darn slow performance (takes around 10 seconds to load each
count and I do it twice). Is there another faster way to get the total
size from the postgres query?

I am using this kind of format in database

e.g: table population [id, race id]
table race [id, persons id]
table persons[id, likes]

so if I use "population.race.persons.count" I would get the total size
of the persons in that particular race and population.

--
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 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-US.

Ruby on Rails

Carlos, I keep going over this url, but I dont see any reference to
version changes here. What am I missing? Thank you.

On Jun 28, 4:39 pm, Carlos Mathiasen <gunmath...@gmail.com> wrote:
> You can see this in rails guides[1]
>
> [1]http://guides.rubyonrails.org
>
> Matt's

--
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-US.