|
May
5 |
|
comment |
ActiveRecord::Relation query for grouped objects Thanks for great solution! By the way, it seems like without .joins(:subject), query still works correctly.
|
|
May
5 |
|
accepted | ActiveRecord::Relation query for grouped objects |
|
May
5 |
|
asked | ActiveRecord::Relation query for grouped objects |
|
May
4 |
|
comment |
Custom validation in Rails Thanks, very helpful! |
|
May
4 |
|
accepted | Custom validation in Rails |
|
May
4 |
|
comment |
Custom validation in Rails Thanks for suggestions. But it still doesn't work for me. I've just copied console session pastebin.com/jMERFH5M. |
|
May
4 |
|
asked | Custom validation in Rails |
|
Apr
17 |
|
comment |
ActiveRecord relation with nested objects to JSON Thanks! This is exactly what I've been waiting for. |
|
Apr
17 |
|
accepted | ActiveRecord relation with nested objects to JSON |
|
Apr
16 |
|
revised |
ActiveRecord relation with nested objects to JSON deleted 40 characters in body |
|
Apr
16 |
|
asked | ActiveRecord relation with nested objects to JSON |
|
Apr
5 |
|
comment |
How to get attributes that were defined through attr_reader or attr_accessor Thanks for your response, but I asked about a case when I don't know the names of the attributes, because otherwise it wouldn't be DRY approach. For example, what if I decide to add additional attributes @d, @e, @f. Then I'll have to add them in attributes method manualy as well as in initialize, which leads to the duplication of code.
|
|
Apr
4 |
|
accepted | How to get attributes that were defined through attr_reader or attr_accessor |
|
Apr
4 |
|
asked | How to get attributes that were defined through attr_reader or attr_accessor |
|
Mar
27 |
|
accepted | Sinatra: access to optional parameter |
|
Mar
27 |
|
awarded | Student |
|
Mar
27 |
|
asked | Sinatra: access to optional parameter |
|
Feb
24 |
|
awarded | Scholar |
|
Feb
24 |
|
accepted | Using regex with newline "\n" |
|
Feb
24 |
|
asked | Using regex with newline "\n" |