What Rails application templates show best practices for setting up a new Ruby on Rails application? I\'m interested in two things.
I\'m setting up an after_save callback in my model observer to send a notification only if the model\'s published attribute was changed from false to true. Since methods such as changed? are only usef
If I type in my console u 开发者_开发问答= User.first u.friends(&map:username) I get [\"Peter\", \"Mary\", \"Jane\"] but I also want to show the birthday, so how do I do that? I tried
I\'m so use开发者_高级运维d to oracle where you can simply concat(field1, \' \', field2) but if I\'m using activerecord to find the field1 and field2, and I need a space in between, how do I accom