Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created June 3, 2011 18:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joesavak/1006810 to your computer and use it in GitHub Desktop.
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