Displaying 3 results from an estimated 3 matches for "forbiddenattributeserror".
2013 Oct 21
6
I think I've found a mistake in Rails tutorial
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
2013 Dec 10
2
form_tag + fields_for Rails 4
...ty name", "state"=>"state name", "zip_code"=>"00000"}
>> params[:campus]
=> {"name"=>"Campus name", "description"=>"campus description"}
>>
With this code the error is:
ActiveModel::ForbiddenAttributesError
@campus.addresses.new(params[:addresses])
Let me know if you need more information.
Thank You,
André
--
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, se...
2013 May 04
21
Getting started w/ Rails 4
Hi. I''m trying to run Getting started tutorial under Rails 4.0.0.beta1
although it assumes it runs on Rails 3. I was able to get rid of all
errors by wrapping post_params here and there, and installing
protected_attributes Gem for attr_accessible to make sense. Post/
comment CRUD works just fine, but I don''t seem to be able to add Tags
(the final part of the tutorial). Post saved