examples/controllers/user_controller.rb in api-client-1.5.0 vs examples/controllers/user_controller.rb in api-client-1.5.1
- old
+ new
@@ -1,8 +1,8 @@
class UserController < ApplicationController
# It will works with respond_with.
# Your action should looks like any other one: A model with a method call. =D
def index
- @user = User.get("api.example.com/users")
+ @users = User.get("api.example.com/users")
respond_with(@users)
end
end
\ No newline at end of file