RailsCasts Pro episodes are now free!

Learn more or hide this

Steve Downey's Profile

GitHub User: stevedowney

Comments by Steve Downey

Avatar

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.

Avatar

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.