How do you scope ActiveRecord associations in Rails 3?

I suggest you take a look at “Named scopes are dead” The author explains there how powerful Arel is 🙂 I hope it’ll help. EDIT #1 March 2014 As some comments state, the difference is now a matter of personal taste. However, I still personally recommend to avoid exposing Arel’s scope to an upper layer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)