Use __send__:
__send__
Copywhere{__send__(dynamic_column_name) = '42'}
where{__send__(dynamic_column_name) = '42'}
If you have an ordering scope on a column of your ActiveRecord model, that must appear in the result set of the group clause. You need to get rid of the scope with ActiveRecord::Base.unscoped to get **SomeArModel.group(:some_column)....
To use different Facebook apps for authentication with Devise and OmniAuth:
# config/initializers/devise.rb config.omniauth :facebook, nil, nil, setu...