Sha256: a2254a3c965bc4cc220f7dde26d01f4b8ba90d2dab638f406349a51fc781e850
Contents?: true
Size: 333 Bytes
Versions: 6
Compression:
Stored size: 333 Bytes
Contents
class RespondWithUsersController < ApplicationController respond_to :json, :xml def index @users = User.all respond_with @users, :api_template => params[:api_template].to_sym end def show @user = User.find(params[:id]) respond_with @user, :api_template => params[:api_template].to_sym end end
Version data entries
6 entries across 6 versions & 1 rubygems