Sha256: c0c96c0ac33fed1770d922d72b7564966799a233c3128d42f4502a49a55599f1

Contents?: true

Size: 522 Bytes

Versions: 29

Compression:

Stored size: 522 Bytes

Contents

class UsersController < ApplicationController
  respond_to :xlsx, :html

  # GET /users
  # GET /users.json
  def index
    @users = User.all

    respond_to do |format|
      format.html # index.html.erb
      format.xlsx
    end
  end

  def show
    @user = User.find(params[:id])
    respond_with(@user) do |format|
      format.xlsx { render "respond_with.xlsx.axlsx" }
    end
  end

  def send_instructions
    @user = User.find(params[:user_id])
    @user.send_instructions
    render text: "Email sent"
  end
end

Version data entries

29 entries across 15 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy_4/app/controllers/users_controller.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy/app/controllers/users_controller.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy_4/app/controllers/users_controller.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy/app/controllers/users_controller.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy/app/controllers/users_controller.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/dummy_4/app/controllers/users_controller.rb
caxlsx_rails-0.6.3 spec/dummy_4/app/controllers/users_controller.rb
caxlsx_rails-0.6.3 spec/dummy/app/controllers/users_controller.rb
caxlsx_rails-0.6.2 spec/dummy_4/app/controllers/users_controller.rb
caxlsx_rails-0.6.2 spec/dummy/app/controllers/users_controller.rb
axlsx_rails-0.6.1 spec/dummy_4/app/controllers/users_controller.rb
axlsx_rails-0.6.1 spec/dummy/app/controllers/users_controller.rb
axlsx_rails-0.6.0 spec/dummy/app/controllers/users_controller.rb
axlsx_rails-0.6.0 spec/dummy_4/app/controllers/users_controller.rb
axlsx_rails-0.5.2 spec/dummy_4/app/controllers/users_controller.rb
axlsx_rails-0.5.2 spec/dummy/app/controllers/users_controller.rb
axlsx_rails-0.5.1 spec/dummy_4/app/controllers/users_controller.rb
axlsx_rails-0.5.1 spec/dummy/app/controllers/users_controller.rb
axlsx_rails-0.5.0 spec/dummy_4/app/controllers/users_controller.rb
axlsx_rails-0.5.0 spec/dummy/app/controllers/users_controller.rb