Thanks for your help. It turns out I missed something out. (Figure 7:22)

On 21 October 2013 19:45, Jordon Bedwell <[email protected]> wrote:

> On Mon, Oct 21, 2013 at 1:40 PM, Jordon Bedwell <[email protected]>
> 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 a topic in the
> Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/rubyonrails-talk/ZF_MQ-kbFmI/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAM5XQnzSSDPvswh76k%2BKu9fHQkpiKfHTDjjs3orRY1gxT3gDyA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAEZ7cNMGAhereDXBDtSJCOaiAdrW%2BtP0Rw1KyT57j%3D5bOYsOZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to