File: users_controller.rb

package info (click to toggle)
ruby-rabl 0.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,276 kB
  • sloc: ruby: 6,732; javascript: 102; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
class UsersController < ApplicationController
  respond_to :json

  def index
    @users = User.order('username ASC').load
  end

  def show
    @user = User.find(params[:id])
  end
end