[Rails-core] Re: Improving the ActiveRecord query API

2012-12-11 Thread Daniel Azuma
At the risk of returning to the original broader topic, I thought I'd put in a couple cents. Rails applications have long since moved past simple CRUD and are embracing more complex applications and more sophisticated database integration. The proliferation of a variety of strong NoSQL integrat

[Rails-core] Re: Generic asset definitions and management

2012-12-11 Thread Ɓukasz Niemier
I vote on Bower. But so far I'm trying to get it work when installing in `vendor/assets`. On Tuesday, September 4, 2012 8:43:58 PM UTC+2, Gary Weaver wrote: > > (The following is not a Rails-specific question, but relates to a problem > that affects Rails, so I wonder whether anyone on the team

Re: [Rails-core] Improving the ActiveRecord query API

2012-12-11 Thread Ernie Miller
On Tuesday, December 11, 2012 6:35:48 AM UTC-5, Rodrigo Rosenfeld Rosas wrote: > > But I find this more consisent: > > post[:"dotted.column"].like('zomg%') > > than this: > > post.__send__(:"dotted.column").like('zomg%') > > You could actually support both syntaxes, but if you do so you wouldn't

Re: [Rails-core] Improving the ActiveRecord query API

2012-12-11 Thread Rodrigo Rosenfeld Rosas
Em 10-12-2012 19:40, Ernie Miller escreveu: On Monday, December 10, 2012 4:08:06 PM UTC-5, Rodrigo Rosenfeld Rosas wrote: What if a column is named "class"? I'd rather prefer something like that: Post.where { |post| post[:title].like('zomg%') | post[:class].like('bbq%')