code
stringlengths
1
1.73M
language
stringclasses
1 value
# #= タスクコメントモデル # # # class DatTaskcmt < ActiveRecord::Base ######################### # 関連定義 ######################### # タスクデータに所有される(1:多) belongs_to :dat_task end
Ruby
# #= プロジェクトアイテムクラス # # # class ClsProjectitem attr_reader :isclass attr_reader :projectcomp attr_reader :class_level # #=== コンストラクタ # # def initialize( isclass, level, projectcomp ) @isclass = isclass @projectcomp = projectcomp @class_level = level end # #=== 分類名を返す # # def n...
Ruby
# #= プロジェクトモデル #WBS,ガントチャート,カレンダーなどプロジェクト構成オブジェクトの一覧を取得する #また,テンプレートデータ(テンプレートマスタ)から属性値をコピーする # class DatProject < ActiveRecord::Base ######################### # 関連定義 ######################### # プロジェクト構成データを所有する(1:多) has_many :dat_projectcomps, :foreign_key => "project_id", :dependent=>:destroy # プロジェクトユーザ...
Ruby
# #= テンプレートマイルストーンマスタモデル # # # class MstTpmilestone < ActiveRecord::Base ######################### # 関連定義 ######################### # テンプレート構成マスタに所有される(1:1) belongs_to :mst_composition, :foreign_key => "template_tree_id" end
Ruby
require 'digest/sha1' # #= ユーザマスタモデル # #ログイン時の認証、パスワードの暗号化・変更を行う。 # class MstUser < ActiveRecord::Base attr_accessor :password_confirmation # #=== ユーザーオブジェクトを返す # #ログインID、パスワードを元にユーザーデータを検索し #一致した場合(認証OK)はユーザーオブジェクトを返す。 # def self.authenticate(login, pass) logger.info login + ':' + pass + ' > ' ...
Ruby
# #= プロジェクトコンポーネントモデル # #プロジェクト構成オブジェクト(タスク・マイルストーン・イベント)の追加・更新・削除後に #ログを出力する。 # #プロジェクト構成オブジェクトの種類はtask_kbnで識別する。 # task_kbn = 1 => タスク # task_kbn = 2 => マイルストーン # task_kbn = 3 => イベント # class DatProjectcomp < ActiveRecord::Base ######################### # 関連定義 ######################### # プロジェクトデータに所有される(1:多...
Ruby
# #= テンプレートマスタモデル # # # class MstTemplate < ActiveRecord::Base ######################### # 関連定義 ######################### # テンプレート構成マスタを所有する(1:多) has_many :mst_compositions, :foreign_key => "template_id", :dependent=>:destroy end
Ruby
class DatCall < ActiveRecord::Base end
Ruby
# #= アプリケーションメーラー # #サインアップ完了通知・招待・プロジェクト召集のメールを送信する。 # class AppMailer < Iso2022jpMailer helper ApplicationHelper # #=== サインアップ完了メールを送信する # # def mail_signup_confirm( user, info ) recipients user.email subject NKF.nkf('-j', info[:subject]) from ActionMailer::Base.smtp_settings[:app_default_f...
Ruby
# #= タスク履歴モデル # # # class DatTaskhistory < ActiveRecord::Base ######################### # 関連定義 ######################### # タスクデータに所有される(1:多) belongs_to :dat_task end
Ruby
# #= テンプレートタスクマスタモデル # # # class MstTptask < ActiveRecord::Base ######################### # 関連定義 ######################### # テンプレート構成マスタに所有される(1:1) belongs_to :mst_composition, :foreign_key => "template_tree_id" end
Ruby
# #= タスクモデル # # # class DatTask < ActiveRecord::Base ######################### # 関連定義 ######################### # プロジェクト構成データに所有される(1:1) belongs_to :dat_projectcomp, :foreign_key => "project_tree_id" # タスクコメントデータを所有する(1:多) has_many :dat_taskcmts, :foreign_key => "task_id", :dependent=>:destroy # タスクユーザ...
Ruby
# #= イベントユーザモデル # # # class DatEventuser < ActiveRecord::Base ######################### # 関連定義 ######################### # イベントデータに所有される(1:多) belongs_to :dat_event, :foreign_key=>"event_id" # プロジェクトユーザーデータに所有される(1:多) belongs_to :dat_projectuser, :foreign_key=>"projectuser_id" end
Ruby
class MstMessage < ActiveRecord::Base end
Ruby
# #= イベントモデル # # # class DatEvent < ActiveRecord::Base ######################### # 関連定義 ######################### # プロジェクト構成データに所有される(1:1) belongs_to :dat_projectcomp, :foreign_key => "project_tree_id" # イベントユーザーデータを所有する(1:多) has_many :dat_eventusers, :foreign_key => "event_id", :dependent=>:destroy # ...
Ruby
# #= イベントファイルモデル # # # class DatEventfile < ActiveRecord::Base ######################### # 関連定義 ######################### # イベントデータに所有される(1:多) belongs_to :dat_event end
Ruby
# #= プロジェクトログモデル # # # class DatProjectlog < ActiveRecord::Base ######################### # 関連定義 ######################### # プロジェクト構成データに所有される(1:1) belongs_to :dat_projectcomp, :foreign_key => "projectcomp_id" end
Ruby
# #= タスクファイルモデル # # # class DatTaskfile < ActiveRecord::Base ######################### # 関連定義 ######################### # タスクデータに所有される(1:多) belongs_to :dat_task end
Ruby
# #= テンプレートイベントマスタモデル # # # class MstTpevent < ActiveRecord::Base ######################### # 関連定義 ######################### # テンプレート構成マスタに所有される(1:1) belongs_to :mst_composition, :foreign_key => "template_tree_id" end
Ruby
# #= テンプレート構成マスタモデル # # # class MstComposition < ActiveRecord::Base ######################### # 関連定義 ######################### # テンプレートマスタに所有される(1:多) belongs_to :mst_template, :foreign_key => "template_id" # TPタスクマスタを所有する(1:1) has_one :mst_tptask, :foreign_key => "template_tree_id", :dependent=>:destroy ...
Ruby
# #= タスクユーザモデル # # # class DatTaskuser < ActiveRecord::Base ######################### # 関連定義 ######################### # タスクデータに所有される(1:多) belongs_to :dat_task, :foreign_key=>"task_id" # プロジェクトユーザーデータに所有される(1:多) belongs_to :dat_projectuser, :foreign_key=>"projectuser_id" end
Ruby
class UserController < ApplicationController # 共通レイアウト定義 layout "mainpage" # フィルタ定義 before_filter :login_required # ログインチェック before_filter :get_project_info # 更新時もタブ情報の取得は必要 before_filter :user_required # ユーザーチェック # #=== アカウント情報編集ページを表示 # #指定されたユーザのアカウント情報を取得して,編集ページを表示する # def e...
Ruby
# #イベント情報の追加,更新,削除などを行う. #主にajax経由で呼ばれる. # class EventController < ApplicationController # 共通レイアウト定義 layout "mainpage", :except=>[:block_list, :dlg_index, :dlg_new, :dlg_edit, :dlg_create, :dlg_update, :dlg_destroy] # フィルタ定義 before_filter :login_required # ログインチェック # 追加ヘルパー定義 helper :project # コントローラー使...
Ruby
class TaskController < ApplicationController # 共通レイアウト定義 layout "mainpage", :except=>[:block_list, :block_infolist, :dlg_index, :dlg_new, :dlg_edit, :dlg_create, :dlg_update, :dlg_destroy, :dlg_report] # フィルタ定義 before_filter :login_required, :except=>[:sync_air] # ログインチェック # 追加ヘルパー定義 helper :project # ...
Ruby
class LoginController < ApplicationController layout 'loginpage' , :except=>[:login, :air_login] include ApplicationHelper # #ログイン画面を表示,及びログイン処理を行う # #リクエストメソッドがGETの場合はログイン画面を表示する. #POSTの場合には,フォームからポストされたuser_login_idとuser_passwordを元にログイン処理を行う # #ログインに成功した場合は,プロジェクトのダッシュボードへリダイレクトする. #失敗した場合には再度ロ...
Ruby
class Extensions::AirController < ApplicationController ########################################################### # メソッド:air_loginアクション # 概  要:Airアプリからのログイン処理 ########################################################### def login case request.method when :post if user = MstUser.authenticat...
Ruby
# #マイルストーンの追加,編集,削除などを行うコントローラ. #主にAjax経由で呼ばれる. # class MilestoneController < ApplicationController # 共通レイアウト定義 layout "mainpage", :except=>[:dlg_index, :dlg_new, :dlg_edit, :dlg_create, :dlg_update, :dlg_destroy] # フィルタ定義 before_filter :login_required # ログインチェック # 追加ヘルパー定義 helper :project # コントローラー使用の...
Ruby
class ProjectfileController < ApplicationController # ヘルパ定義 include ApplicationHelper ########################################################### # メソッド:dlg_indexアクション # 概  要:タスク編集ダイアログのためのデフォルトアクション ########################################################### def dlg_index end # upload_check # 同名の...
Ruby
require 'app_active_record'# ActiveRecord拡張 require_dependency 'login_system'# ログイン機能 # #アプリケーションコントローラ. #全てのコントローラの親コントローラとなる. # #アプリケーション全体にかかる認証処理やデフォルトで読み込むヘルパの定義を行う # class ApplicationController < ActionController::Base #認証処理を行うライブラリ include LoginSystem #-- # フィルタ定義 #++ #ローカライズ処理実施 before_filter :l...
Ruby
class ProjectuserController < ApplicationController # フィルタ定義 before_filter :login_required # ログインチェック # #=== プロジェクトの参加ユーザを表示する # #指定プロジェクトのさんかユーザ一覧を表示する. # def block_list conditions = " dat_projects.valid_flg = 1 " conditions << " AND dat_projects.id = " conditions << ((params[:project_id]....
Ruby
class ProjectcompController < ApplicationController # フィルタ定義 before_filter :login_required # ログインチェック # #=== プロジェクトアイテムの順番の入れ替えを行う # #アイテムの行番号を更新する # def item_order_update id = params[:id] offset = params[:offset] # 対象のプロジェクト構成データを取得 target = DatProjectcomp.find(id) # 入れ替え対象のプロジ...
Ruby
class ProjectlogController < ApplicationController # フィルタ定義 before_filter :login_required # ログインチェック # #=== プロジェクトの更新履歴を表示する # #指定プロジェクトの最新7日間の更新履歴を表示する. # def block_list limit_date = (Date.today - 7).strftime('%Y-%m-%d') conditions = "dat_projects.valid_flg = 1 AND dat_projectlogs.created_on >...
Ruby
class LocalizeController < ApplicationController ########################################################### # メソッド:load_messageアクション # 概  要:ローカライズ用の言語データを返すアクション(JSON形式) ########################################################### def load_message render :text=> "app_messages_hash = " + @app_messages_has...
Ruby
# #= プロジェクトコントローラ #WBS,ガントチャート,カレンダーなど基本的なデータの表示を行う. #また,プロジェクトの追加,編集などを行う # class ProjectController < ApplicationController # 共通レイアウト定義 layout "mainpage", :except=>[:block_list, :json_list_for_wbs, :json_list_for_gantt, :json_init_projects, :json_init_project_users, :json_init_project_comps, :json_init_project_log...
Ruby
ActionController::Routing::Routes.draw do |map| # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action # ...
Ruby
# Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) module Rails class << self def boot! unless booted? preinitialize pick_boot.run end end def booted? ...
Ruby
# Be sure to restart your web server when you modify this file. $kcode='u' # Uncomment below to force Rails into production mode when # you don't control web/app server and can't set it the proper way # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present RAILS_G...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error repor...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the webserver when you make code changes. config.ca...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between...
Ruby
# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require(File.join(File.dirname(__FILE__), 'config', 'boot')) require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'tasks/rails'
Ruby
require "active_record" #require 'json' class ActiveRecord::Base # before_create :create_user_set # before_update :update_user_set # def to_json(*a) # result = {"Result" => self.attributes } #p self.attributes # result.to_json self.attributes_before_type_cast.to_json end # def create_user_set # i...
Ruby
# # Iso2022Mailer - 日本語メール送信処理プラグイン # # from : # http://wiki.fdiary.net/rails/?ActionMailer (moriq さん) # http://wota.jp/ac/?date=20050731#p01 (くまくまーさん) # # Model で Iso2022jpMailer を継承して使用する # (see http://d.hatena.ne.jp/drawnboy/20051114/1131977235 ) # TestMailer < Iso2022jpMailer # ... # end # # MIT License # requi...
Ruby
require_dependency "mst_user" module LoginSystem protected # overwrite this if you want to restrict access to only a few actions # or if you want to check if the user has the correct rights # example: # # # only allow nonbobs # def authorize?(user) # user.login != "bob" # end def aut...
Ruby
# # jsmin.rb 2008-06-08 # Author: UEDA Hiroyuki <BSDmad@gmail.com> # # This work is originated from jsmin.rb by Uladzislau Latynski. # The purpose of translation from jsmin.rb to jsmin.rb ^^;) is # for using the feature as a class. As a result, you can deploy # minified JavaScript files with this class as follows: # #...
Ruby
class CreateDatProjects < ActiveRecord::Migration def self.up create_table :dat_projects do |t| t.string "project_cd", :null => false t.string "project_name", :null => false t.date "start_date" t.date "delivery_date" t.integer "valid_f...
Ruby
class CreateDatTaskusers < ActiveRecord::Migration def self.up create_table :dat_taskusers do |t| t.integer "task_id", :null => false t.integer "projectuser_id", :null => false t.integer "create_user_id", :null => false t.datetime "created_on", :null => false end end ...
Ruby
class CreateDatTaskhistories < ActiveRecord::Migration def self.up create_table :dat_taskhistories do |t| t.integer "task_id", :null => false t.string "msg_code", :limit => 20, :null => false t.text "content", :null => false t.integer ...
Ruby
class CreateMstMessages < ActiveRecord::Migration def self.up create_table :mst_messages do |t| t.string "msg_code", :null => false t.integer "msg_kbn", :null => false t.text "msg_base", :null => false t.text "msg_j...
Ruby
class CreateMstUsers < ActiveRecord::Migration def self.up create_table :mst_users do |t| t.string "login_id" t.string "password", :null => false t.string "user_name", :null => false t.string "email", ...
Ruby
class CreateDatEvents < ActiveRecord::Migration def self.up create_table :dat_events do |t| t.integer "project_tree_id", :null => false t.date "start_date" t.time "start_time" t.date "end_date" t.time "end_time" t.integer "alld...
Ruby
class CreateDatTaskcmts < ActiveRecord::Migration def self.up create_table :dat_taskcmts do |t| t.integer "task_id", :null => false t.text "comment", :null => false t.integer "create_user_id", :null => false t.datetime "created_on", :null => false end end d...
Ruby
class CreateDatMilestones < ActiveRecord::Migration def self.up create_table :dat_milestones do |t| t.integer "project_tree_id", :null => false t.date "mils_date" t.integer "create_user_id", :null => false t.datetime "created_on", :null => false t.integer "updat...
Ruby
class CreateMstTptasks < ActiveRecord::Migration def self.up create_table :mst_tptasks do |t| t.integer "template_tree_id", :null => false t.float "plan_power", :default => 0.0 t.integer "tani_kbn", :default => 2 t.text "memo" t.integer "creat...
Ruby
class CreateMstTpevents < ActiveRecord::Migration def self.up create_table :mst_tpevents do |t| t.integer "template_tree_id", :null => false t.string "place", :limit => 100 t.text "content" t.integer "create_user_id", :null => false ...
Ruby
class CreateDatEventfiles < ActiveRecord::Migration def self.up create_table :dat_eventfiles do |t| t.integer "event_id", :null => false t.string "file_name", :limit => 40, :null => false t.string "file_path", :null => false t.integer "crea...
Ruby
class CreateMstTpmilestones < ActiveRecord::Migration def self.up create_table :mst_tpmilestones do |t| t.integer "template_tree_id", :null => false t.integer "create_user_id", :null => false t.datetime "created_on", :null => false t.integer "update_user_id", :null => false ...
Ruby
class CreateMstCompositions < ActiveRecord::Migration def self.up create_table :mst_compositions do |t| t.integer "template_id", :null => false t.integer "line_no", :null => false t.integer "task_kbn", :null => false t.string "item_name", :null => false t.st...
Ruby
class CreateDatTasks < ActiveRecord::Migration def self.up create_table :dat_tasks do |t| t.integer "project_tree_id", :null => false t.integer "priority_kbn", :default => 2, :null => false t.float "plan_power", :default => 0.0, :null => false t.flo...
Ruby
class CreateDatTaskfiles < ActiveRecord::Migration def self.up create_table :dat_taskfiles do |t| t.integer "task_id", :null => false t.string "file_name", :limit => 40, :null => false t.string "file_path", :null => false t.integer "create...
Ruby
class CreateDatProjectlogs < ActiveRecord::Migration def self.up create_table :dat_projectlogs do |t| t.integer "projectcomp_id", :null => false t.integer "log_kbn", :null => false t.integer "create_user_id", :null => false t.datetime "created_on", :null => false end en...
Ruby
class CreateDatProjectcomps < ActiveRecord::Migration def self.up create_table :dat_projectcomps do |t| t.integer "project_id", :null => false t.integer "line_no", :null => false t.integer "task_kbn", :null => false t.string "item_name", :null => ...
Ruby
class UpdateDatTaskHistoriesReportDate < ActiveRecord::Migration def self.up add_column :dat_taskhistories, :report_date, :date end def self.down end end
Ruby
class CreateMstTemplates < ActiveRecord::Migration def self.up create_table :mst_templates do |t| t.string "type_name", :limit => 40 t.string "template_name", :limit => 100, :null => false t.text "memo" t.integer "valid_flg", :default => 1,...
Ruby
class CreateDatEventusers < ActiveRecord::Migration def self.up create_table :dat_eventusers do |t| t.integer "event_id", :null => false t.integer "projectuser_id", :null => false t.integer "entry_flg", :default => 0, :null => false t.integer "c...
Ruby
class CreateDatProjectusers < ActiveRecord::Migration def self.up create_table :dat_projectusers do |t| t.integer "project_id", :null => false t.string "email", :limit => 40, :null => false t.integer "user_id" t.integer "create_...
Ruby
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class Test::Unit::TestCase # Transactional fixtures accelerate your tests by wrapping each test method # in a transaction that's rolled back on completion. This ensures that the # test datab...
Ruby
#!/usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai...
Ruby
#!/usr/local/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.lo...
Ruby
#!/usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai...
Ruby
#!/usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai...
Ruby
#!/usr/local/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.lo...
Ruby
#!/usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impai...
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/breakpointer'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/breakpointer'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
module CalendarHelper def open_calender(element) return link_to(image_tag("icon-calendar.gif", :border => 0), "javascript:dispCal('" + element + "');") end end
Ruby