Sha256: 7e39df594a52bc35362dc8c2caa3e2a0606ce3524974cb167e3fc17d7c11e00d

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

class LikesController < ApplicationController
  # GET /likes
  # GET /likes.json
  def index
    @user = User.find(params[:user_id])
    @likes = @user.likes

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

  def render_elsewhere
    @user = User.find(params[:user_id])
    render :xlsx => "/users/index"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axlsx_rails-0.1.5 spec/dummy/app/controllers/likes_controller.rb
axlsx_rails-0.1.4 spec/dummy/app/controllers/likes_controller.rb