icyflame / mentorship-rails

The website cum portal of the Student Alumni Mentorship Program of Students' Alumni Cell, IIT Kharagpur.
0 stars 2 forks source link

mentor update profile not working #25

Closed aniarya82 closed 9 years ago

icyflame commented 9 years ago

Have you tested this on mentorship website or on local host?

On 05-Mar-2015, at 12:42 AM, Hiten Chowdhary notifications@github.com wrote:

— Reply to this email directly or view it on GitHub.

aniarya82 commented 9 years ago

Yup, on both localhost and online, the update thing is not working with mentor profile

icyflame commented 9 years ago

Okay. Thanks for the update. I will look into it.

icyflame commented 9 years ago

Debugged. This is the log output for the update function:

Completed 500 Internal Server Error in 5ms

ActiveRecord::UnknownAttributeError (unknown attribute: current_password):
  app/controllers/mentors/registrations_controller.rb:11:in `update_resource'
icyflame commented 9 years ago

Problem Identified.

The update function has been activated without the current password. And thus, we can remove that from the edit profile window.

Devise defaults require it to be there, but I have changed it, so that the profile can be updated without the current password.

aniarya82 commented 9 years ago

peace

icyflame commented 9 years ago

Fixed this issue in https://github.com/light94/mentorship-portal/commit/d75388c221b950058a4bb5d411d46a0829436273.

@aniarya82 : Nice work!