Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
saveliuid
def saveliuid
user = current_user
liuid = params[:liuid]
liname = params[:liname]
user.li_uid = liuid
user.li_name = liname
user.save!
respond_to do |format|
format.js do
render :json => {"status" => "ok"}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.