Excerpts from Scaffolds created with Ruby on Rails
— -Controller — -
class WebLoginsController < ApplicationController
before_action :set_web_login, only: [:show, :edit, :update, :destroy]
# GET /web_logins
# GET /web_logins.json
def index
@web_logins = WebLogin.order(:name)
end
# GET /web_logins/1
# GET /web_logins/1.json
def show
end