RailsCasts Pro episodes are now free!

Learn more or hide this

Naomi's Profile

GitHub User: naomik

Comments by Naomi

Avatar

The @template instance variable is no longer available in Rails 3.

Instead you can use this:

flash[:notice] = "Successfully created #{view_context.link_to('product', @product)}."

Hope this helps :)