Showing base errors with the error_notification form helper

64 views
Skip to first unread message

jokklan

unread,
Mar 14, 2014, 5:14:05 PM3/14/14
to plataformate...@googlegroups.com
Hey

Would it be an idea to let the error_notification show error messages on base for the form object? So if you had 

@user.errors.add(:base, "Your account is not activated yet.")
and the following form

<%= simple_form_for @user do |f| %>
  <%= f.error_notification %>
  ...
<% end %>
Would it return something like
<div class="error_notification">
  Please review the problems below:
  <ul>
    <li>Your account is not activated yet.</li>
  </ul>
</div>
If it's something that would be of use, will i be glad to make a pull request?

Cheers jokklan

Rafael Mendonça França

unread,
Mar 14, 2014, 5:19:45 PM3/14/14
to PlataformaTec - SimpleForm
Hi,

Thank you for the suggestion but I think we do not need to include this on Simple Form since it is very easy to implement in application.

--
You received this message because you are subscribed to the Google Groups "SimpleForm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-simp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jokklan

unread,
Mar 14, 2014, 7:48:11 PM3/14/14
to plataformate...@googlegroups.com
Sure no problem, just implemented it for myself so thought i would ask :)
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-simpleform+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages