Sha256: 65238cb7d4a0ddd802ac84a40c9a6a88324d28d7372c0013b2ad2c81b63bb150
Contents?: true
Size: 254 Bytes
Versions: 3
Compression:
Stored size: 254 Bytes
Contents
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") respond_with(@users) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
api-client-1.5.0 | examples/controllers/user_controller.rb |
api-client-1.4.1 | examples/controllers/user_controller.rb |
api-client-1.4.0 | examples/controllers/user_controller.rb |