Sha256: f9ea88ff67680bc41c1cf1c738490c09e7e729b767aaba8f475a3205b38b6e47
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 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
4 entries across 2 versions & 1 rubygems