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