Sha256: e0e66392f8f4d6f56be82e57493114e23f0d45e4cf4d12d9b30e683ff34f88c3

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

class UsersController < ApplicationController
  respond_to :xlsx, :html

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workbook_rails-0.1.1 spec/dummy/app/controllers/users_controller.rb
workbook_rails-0.1.0 spec/dummy/app/controllers/users_controller.rb