Rails : devise and best_in_place -


I am using rail and am ready to authenticate (username - email-password), for the user The best_in_ location is used to edit other attributes (profiles), but when I update field properties, it is not saved even if I reload the page (this is not a jquery problem ), So what should i do

Are you configuring device parameters before the update? Add something to your ApplicationController:

  before_filter: update_sanitized_params, if :: devise_controller? Def update_sanitized_params devise_parameter_sanitizer.for (: sign_up) & lt; & Lt; : Name devise_parameter_sanitizer.for (: account_update) & lt; & Lt; [: Name: avatar, remote_overa_arla] and  

Your update action does not work, another reason may be that, you do not allow additional fields in your profile controller Are there.

  def user_params access = [: name,: email,: age ...] # Expand with your own parameters .require (: user). Passed (accessible) end  

I hope this will help.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -