When a user fails login on my Rails app, I'd like to point them to a password reset page:
flash[:notice] = "Login failed. If you have forgotten your password, you can #{link_to('reset it', reset_path)}"
However, I can't use link_to in a controller. What's the best way to do this without mixing controller and view logic?
My best guess is that the flash is the wrong place to do this, but I'd appreciate any input.