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