Fixed syntax error.

This commit is contained in:
Martin Edenhofer 2012-08-10 09:43:36 +02:00
parent 480abed922
commit 84e98e4b2c

View file

@ -6,14 +6,14 @@ class UsersController < ApplicationController
@users = User.all
@users_all = []
@users.each {|user|
@users_all.push user_data_full( user.id )
@users_all.push User.user_data_full( user.id )
}
render :json => @users_all
end
# GET /users/1
def show
@user = user_data_full( params[:id] )
@user = User.user_data_full( params[:id] )
render :json => @user
end
@ -84,7 +84,7 @@ class UsersController < ApplicationController
@user.organization_ids = params[:organization_ids]
end
@user = user_data_full( params[:id] )
@user = User.user_data_full( params[:id] )
render :json => @user, :status => :ok
else
render :json => @user.errors, :status => :unprocessable_entity