Sha256: a0900e6267b3be7a1dfddfc9b57fbba1caab334aa41121cfa947bb197311565a

Contents?: true

Size: 400 Bytes

Versions: 11

Compression:

Stored size: 400 Bytes

Contents

# encoding: utf-8

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.csv
    end
  end

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv_rb-6.0.3.1 spec/dummy/app/controllers/likes_controller.rb
csv_rb-6.0.2.4 spec/dummy/app/controllers/likes_controller.rb
csv_rb-6.0.2.3 spec/dummy/app/controllers/likes_controller.rb
csv_rb-6.0.2.2 spec/dummy/app/controllers/likes_controller.rb
csv_rb-6.0.2.1 spec/dummy/app/controllers/likes_controller.rb
csv_rb-5.2.3.2 spec/dummy/app/controllers/likes_controller.rb
csv_rb-5.2.3.1 spec/dummy/app/controllers/likes_controller.rb
csv_rb-5.2.3 spec/dummy/app/controllers/likes_controller.rb
csv_rb-5.2.2 spec/dummy/app/controllers/likes_controller.rb
csv_rb-5.2.1 spec/dummy/app/controllers/likes_controller.rb
csv_rb-0.5.2 spec/dummy/app/controllers/likes_controller.rb