http://edgar411.com

Google Custom Search



You are

|| Login | Register | Why Register? ||


Browse Authors Of Fragments And Output Reports

Browse Stock Symbols

Browse EDGAR Input Reports

Browse Output Reports

Browse Fragments Used To Create Output Reports


About Edgar411.com

Contact Edgar411.com

Terms and Conditions

Built by http://bikle.com
(Rails Development/Consulting)

RDoc of Edgar411.com

RDoc of ActiveScaffold Plugin

RDoc of Hpricot 0.6

RDoc of Ruby On Rails


Translations:
Built with:
GNU Emacs
Arorem
Subversion
Piston
FreeBSD
PostgreSQL
Rails 1.2
LoginSugar
Active Scaffold
Hpricot
Lighttpd
|| Home | Symbols | Input Reports | Output Reports | Fragments ||

Output Reports Built From Fragments Of EDGAR Reports

Owner of This Output Report EDGAR Report Providing Input Fragments Output Report Built From Fragments Coalesced Into Final Fragment Fragments of EDGAR Report Name Of Final Fragment (Built From Coalesced Fragments)
bikle
Link To EDGAR Input Report
Meta-Data of: GOOG-10-K-2006-12-31
GOOG-10-K-2006-12-31-Balance Sheet Render or show GOOG-10K-2006-F102
Show
bikle
Link To EDGAR Input Report
Meta-Data of: GOOG-10-K-2006-12-31
GOOG-10-K-2006-12-31-Income-Statement
 
Show

Source Code:

/controllers/asls/outputrpts_controller.rb

# Provides read-only view via active_scaffold
class Asls::OutputrptsController < ApplicationController

  skip_before_filter :authenticate_usr

  active_scaffold do |config|
    config.actions = [:list, :show, :search]
    config.label = "Output Reports Built From Fragments Of EDGAR Reports"
    config.list.columns = [:usr, :rpt, :name, :frgmnts, :finalfrgmnt_name]
    config.show.columns = [:usr, :rpt, :name, :frgmnts, :finalfrgmnt_name]
    config.columns[:usr].label = "Owner of This Output Report"
    config.columns[:rpt].label = "EDGAR Report Providing Input Fragments"
    config.columns[:name].label = "Output Report Built From Fragments Coalesced Into Final Fragment"
    config.columns[:frgmnts].label = "Fragments of EDGAR Report"
    config.columns[:finalfrgmnt_name].label = "Name Of Final Fragment (Built From Coalesced Fragments)"
  end # active_scaffold
end

/models/outputrpt.rb

class Outputrpt < ActiveRecord::Base

  validates_uniqueness_of :name, :message => " is already being used"
  # Associations should come after callbacks
  belongs_to :rpt
  belongs_to :usr
  belongs_to :outputrpttype
  has_many :frgmnts
  protected

  def validate
    case
    # The controller will set name = "record_usr_id_ne_session_usr_id" if
    # I try to update a record I do not own.
    when name == "record_usr_id_ne_session_usr_id"
      errors.add_to_base "You can only update your records, not other's records."
    end # case
  end # validate
end # class

/helpers/asls/outputrpts_helper.rb

module Asls::OutputrptsHelper
end