Presenting form error messages

Hi

Instead of using the “error_messages_for ‘user’” method, I’ve been
manually imbedding the error messages in my form view …

<%= f.text_field :name %><br/>
<%= error_message_on(:user, :handle) %> # eg: "Please specify a 

username"

… which means I can no longer use error_messages_for because the
grammer will be wrong.

Does anyone else do a similar thing? And have suggestions on how to
make it “nicer”.

Thanks :slight_smile: Jason

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