Displaying 2 results from an estimated 2 matches for "_error_messages".
Did you mean:
error_messages
2013 Oct 21
6
I think I've found a mistake in Rails tutorial
...form shows the
following image at
<http://ruby.railstutorial.org/images/figures/signup_failure_rails_4.png>
According to the tutorial, I must modify these files to rid myself of the
error.
- app/controllers/users_controller.rb
- app/views/users/new.html.erb
- app/views/shared/_error_messages.html.erb
- app/assets/stylesheets/custom.css.scss
I made all the modifications (until I saw the *working image*<http://ruby.railstutorial.org/images/figures/signup_error_messages_bootstrap.png>to the 4 files), and I still get the error image above when submitting the
file, rather than...
2010 Aug 18
7
error_messages_for doesn't work
I''m having a problem, ''cause I wrote the following line in my model
"Hi":
[code]
validates_numericality_of :phone, :only_integer => true, :allow_blank =>
false, :message => "must be a number"
[/code]
And in my "new" view, I put:
[code]
<%= error_messages_for :oi,
:header_message => "Erro ao cadastrar