Forum: Ruby on Rails Flash with dynamic data

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5d4e1b9f6e3044d824e90cf8e17c7d0b?d=identicon&s=25 Brian Spaid (brianspaid)
on 2006-05-09 07:07
I've been trying to figure out how to put dynamic data in the flash to
no avail. What I want is something that ends up looking like this:


Product "Widget5000" has been updated.

Any help would be appreciated.
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-05-09 07:18
(Received via mailing list)
On Tuesday, May 09, 2006, at 7:07 AM, Brian Spaid wrote:
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails

flash[:notice] = "Product '#{product}' has been updated"

_Kevin
5d4e1b9f6e3044d824e90cf8e17c7d0b?d=identicon&s=25 Brian Spaid (brianspaid)
on 2006-05-09 14:04
perfect, thanks! It was the nested quotes screwing me up.
This topic is locked and can not be replied to.