Bug/registration inputs

Registration with missing email or city breaks, Let me know of all the Ruby style guide mistakes I am making =)
Ill check that out. I spent a fair bit of time trying to mess with the
existing user model to benifit from the validator. But kept getting hung up.
On Sep 28, 2014 12:08 PM, "Nick Barnwell" <notifications@github.com> wrote:

> In app/controllers/registrations_controller.rb:
>
> > @@ -43,6 +52,16 @@ def update
> >      end
> >    end
> >
> > +  def validate_new_user_input(params)
>
> I think what we actually want to do here is encapsulate our Signup form
> logic into a class that implements some of the functionality from
> ActiveModel like we've done for the the MassMailer in AdminController
> <https://github.com/TeaWithStrangers/tws-on-rails/blob/d263c2a2a07a183a5c02c997ba8ce380abfcc19c/app/controllers/admin_controller.rb#L53>.
> Could probably clean up the mess I created quite a bit with some Validator
> magic!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TeaWithStrangers/tws-on-rails/pull/241/files#r18131576>
> .
>