I'm doing this tutorial in Rails + Devise and I've stuck my head. There's this:
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :name, :password, :password_confirmation, :remember_me
validates :email, :presence => true, :uniqueness =>
I tried to translate it to Rails5 since attr_accesible isn't working Rails5 but seriously...I'm in the corner. What's the proper way to do here to make it work? I tried to define a method with permit parameters but it didn't really work out. I'd be really glad if you could give me a good hint on that!
Aucun commentaire:
Enregistrer un commentaire