I have a Rails 3 project. With Rails 3 came Arel and the ability to reuse one scope to build another. I …
ruby-on-rails activerecord ruby-on-rails-3 named-scope arelI've recently started an internship. My employer uses ruby on rails, and I frequently encounter new syntax that I need …
ruby-on-rails named-scopeI have the following scope for my class called Collection: scope :with_missing_coins, joins(:coins).where("coins.is_missing = ?", …
ruby-on-rails ruby named-scopeI have a User model. I can check whether a User is an admin by doing a_user.try(:admin?). …
ruby-on-rails model scope named-scope rails-modelsI'm using the latest mongoid... How do I do the mongoid equivalent of this active record named_scope: class Comment …
ruby-on-rails mongodb scope mongoid named-scopeI have a situation where the behavior of an existing app is changing and it's causing me a major headache. …
ruby-on-rails ruby-on-rails-3 activerecord named-scope default-scopeI have a scope that acts as a filter. For instance: class User scope :in_good_standing, -> { where(:…
ruby-on-rails activerecord named-scopeI am getting this error while accessing scopes. Here is AR model class StatisticVariable < ActiveRecord::Base attr_accessible :code, :…
ruby-on-rails ruby-on-rails-3 activerecord named-scopeSay there are 3 models: A, B, and C. Each of these models has the x attribute. Is that possible to …
ruby-on-rails ruby-on-rails-3 named-scopeI want to make a language selection dropdown in a site user edit/create page. For this purpose, I have …
ruby-on-rails internationalization named-scope