On Mon, Oct 21, 2013 at 1:40 PM, Jordon Bedwell <envyge...@gmail.com> wrote: > One should not claim a tutorial is broken before finishing it, because > clearly further down: > http://ruby.railstutorial.org/chapters/sign-up#sec-strong_parameters
To add since I neglected to mention it like I should have, just because your form is blank does not mean there are no params, blank or not it will create a param as the form still sends the fields, that is why you see them listed there with "". "" is not a null value, it is an empty value, empty != null, nil == null because even a blank value is a value to all systems. This is why Rails has .blank? and .present? so you can work around this situation, but tbh you should not need to as after you permit them and then pass them into the model it should have already done a validator stating that you do not wish it to be blank or null. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzSSDPvswh76k%2BKu9fHQkpiKfHTDjjs3orRY1gxT3gDyA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.