[Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread RVince
See, I don't htink there IS an easier way -- just a Ruby-occluded way called .find_by_sql([select ...]) A lot of this syntactic sugar really gets in the way. Rails is great, as a web framework -- far superior to something like Struts. But in the end, it;s back to JRuby, writing the back end in

Re: [Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread Eno
On Sun, 22 Nov 2009, RVince wrote: See, I don't htink there IS an easier way -- just a Ruby-occluded way called .find_by_sql([select ...]) A lot of this syntactic sugar really gets in the way. Rails is great, as a web framework -- far superior to something like Struts. But in the end, it;s

[Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread RVince
Yes, ORMs are wonderful, once you learn the abstraction layer. But -- and I know some will take offense at this -- there are things to avoid in learning Ruby, and just use the old tried-n-true (many things, like using straight Javascript for most of the Ajax-like things you want to do, or for

[Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread Frederick Cheung
On Nov 22, 4:10 pm, RVince rvinc...@hotmail.com wrote: Yes, ORMs are wonderful, once you learn the abstraction layer. But -- and I know some will take offense at this -- there are things to avoid in learning Ruby, and just use the old tried-n-true (many things, like using straight Javascript