Lets say I have a Product model and my controller allows the creation of 5 new products all at once. What I do right now is render back to the same page but what I want to do is also render in the flash which products have been created. So it would say:
Successfully created: Milk, Soup, Cheese, Bread, Candy
instead of
Successfully created Products
How would this be done?
Something like this should work:
Assuming @created_products is an array of the products you just created and they each have an attribute called name.
Oh and of course you need this in your html: