Rails, noob database/activerecord question?

Taken from the example I linked in the comments above Searches. Find(:all, :select => '*, count(*) AS count, phrase', :group => 'phrase', :order => 'count DESC') Although I just tried this on my own sqlite db and it worked fine (rails 3) Searches. Count(:all, :group => 'phrase', :order => 'count(*) DESC').

Taken from the example I linked in the comments above. Searches. Find(:all, :select => '*, count(*) AS count, phrase', :group => 'phrase', :order => 'count DESC') Although I just tried this on my own sqlite db and it worked fine (rails 3) Searches.

Count(:all, :group => 'phrase', :order => 'count(*) DESC').

I ended out using the new active record interface: Search. Group('phrase'). Count – Joseph Silvashy Dec 15 '10 at 21:52 Duly noted!

Thanks! – jyoseph Dec 15 '10 at 22:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions