def update
@client_application = @user.client_applications.find(params[:id])
if @client_application.update_attributes(params[:client_application])
def update
@client_application = @user.client_applications.find(params[:id])
if @client_application.update_attributes(params[:client_application])