CaptainM / workout_journal

Daily workout suggestions and private log.
0 stars 0 forks source link

User Paths #14

Closed CaptainM closed 9 years ago

CaptainM commented 9 years ago

@harimohanraj89 @htella @DrRobotmck In my where-fi app, my schema has a field of password_digest, and my new, edit, and user_params break that down into :password and :password_confirmation.

However, in my workout_journal, rails does not recognize the user_param of ':password' so I cannot create any new users. I've looked over the code many times and compared it to my where-fi app, and I can't find what is wrong. Is there something with related to having JS in rails that would affect password_digest?

harimohanraj89 commented 9 years ago

Can you push your code to the appropriate branch on GitHub and point us to that so we can take a look?

CaptainM commented 9 years ago

Yep! It's on master, and the user_params can be found workout_journal/app/controllers/users_controller.rb

The error that I'm getting is "unknown attribute :password" on line 12 (when I'm trying to use my user_params).

harimohanraj89 commented 9 years ago

Awesome, thanks.

Take a look at your user model from Where-Fi, and compare it to your user model. See anything different?

htella commented 9 years ago

Did this issue get resolved?