Ask A Question

Notifications

You’re not receiving notifications from this thread.

ActiveRecord Aggregations with composed_of Discussion

I don't see this feature used often in Rails apps, but it's super powerful for things like this. An easy way of creating Ruby objects like this allows you to really organize functionality instead of stuffing it all in models.

Reply

This is great! Never knew about this one. Now I have to try and find uses for it :)

I guess any model attribute that ends up having a lot of auxiliary methods or view helper methods around them would be potential candidates.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.