RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: stevedowney
Since he's editing multiple records, the operation is on the products collection, or at least a subset thereof.
It also means the url helper (discontinue_products_path) will have the plural form which seems appropriate. YMMV.
By using a service object you could wrap the save of recipe (e.g.) and the creation of feed in a transaction. Otherwise you could have an activity succeed without its companion feed row being created.