There is no params as I am just clicking a Signup button that's on a page,
then the error shows up.
I'm using Ruby 1.9.3 and the latest versions of sass-rails and coffee-rails.
development.log says this
Started POST "/users" for 127.0.0.1 at 2013-10-21 19:35:27 +0100
Processing by UsersController#create as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"OhWhPfhLH/3EDeb19LG9u96gu+FUY3cPa+ZdsPN01q8=",
"user"=>{"name"=>"", "email"=>"", "password"=>"[FILTERED]",
"password_confirmation"=>"[FILTERED]"}, "commit"=>"Create my account"}
Completed 500 Internal Server Error in 1ms
ActiveModel::ForbiddenAttributesError
(ActiveModel::ForbiddenAttributesError):
app/controllers/users_controller.rb:12:in `create'
On Monday, October 21, 2013 6:35:15 PM UTC+1, desbest wrote:
> At the point of this section
>
> *http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*<http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure>
> clicking the "Create my account" button on the signup 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 a page that shows me that I left the fields blank.
>
> Can you help with this?
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/202c19f8-fdec-433a-b6bb-1481e6e19d1a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.