I’d like to put a block after a before_filter instead of calling a
separate method because I think it’s looking cooler.
before_filter :only => [:new, :create] do |controller|
flash[:notice] = “That is not allowed!.”
Sadly this doesn’t work:
ndefined local variable or method `flash’ for
I tried it with controller.flash, but then Rails tells me it is
Is there a way to access flash?