Sha256: 22ad35709b79049cc5765520ecac9090a556914d719204102bf38245e08be141
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
class ReportsController < ApplicationController unloadable expose :report expose(:reports) { Report.all } expose(:custom_reports) do if respond_to?(:current_user) && current_user.respond_to?(:reports) current_user.reports else [] end end expose(:available_columns) { report.available_columns } #def new; end #def show; end #def index; end #def edit; end def create report = Report.new(params[:report]) if report.save flash[:notice] = 'Report was successfully created.' redirect_to(report) else render :action => "new" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
report_ui-0.0.1.alpha | lib/app/controllers/reports_controller.rb |