Wednesday, April 18, 2012

Does work in Ruby on Rails 3+?

Currently I am on Rails 3.0.3 and I am trying to render a 'new' action in my user controller but when I get an error I get the initial flash on the new user page, but also get a repeat of the flash message when I go to another page.

From the research I've done, you use[:notice] for renders but it isn't working. Its not clearing the flash after showing it.

Here is my code:

def create[:notice] = "flash test."
render :new

No comments:

Post a Comment