Sha256: 42462f1a48501a73ee15a1ee8896dc59dc0be4859f6b7183ced877f8312b4773

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

class RenderWidgetsController < ApplicationController

  def index
    respond_to do |format|
      format.csv { render :csv => WidgetWithOptions.scoped, :style => :full }
    end
  end

  def show
    respond_to do |format|
      format.csv { render :csv => Widget.find(params[:id]) }
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
as_csv-1.0.2 spec/dummy/app/controllers/render_widgets_controller.rb