Response handling

I want to have customized error and other response handling…like when a
user is created, I want to show user that his account has been
created…or when logging in he has provided login info…
how can I do that?

Vapor R. wrote:

I want to have customized error and other response handling…like when a
user is created, I want to show user that his account has been
created…or when logging in he has provided login info…
how can I do that?

Use

flash messages

in your controller
flash[:notice]

in your view
<%= flash[:notice] %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs