This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:javascript | |
Event.observe(window,'load',function(){ | |
instantiateCkEditor('#{page_part.name.downcase}') | |
Event.addBehavior({ 'a.insert_asset': InsertIntoCk }) | |
}) | |
Event.observe($('part_#{page_part.name.downcase}_filter_id'),'change',function(){ toggleEditor('#{page_part.name.downcase}') }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:javascript | |
Event.observe(window,'load',function(){ | |
instantiateCkEditor('#{page_part.name.downcase}') | |
Event.addBehavior({ 'a.insert_asset': InsertIntoCk }) | |
}) | |
Event.observe($('part_#{page_part.name.downcase}_filter_id'),'change',function(){ toggleEditor('#{page_part.name.downcase}') }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year array -> ['2012','2011','2010','2009'] | |
selected year -> 2010 | |
<%= select_tag 'year_range', options_for_select(['2012','2011','2010','2009'],'2010') %> | |
which will always selects '2010' | |
If you are selecting an object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.erb; do mv "$i" "`basename $i .erb`.erb.old"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Treatment | |
has_many :treatment_treatment_types | |
has_many :treatment_types, :through => :treatment_treatment_types | |
end | |
class TreatmentTypes | |
has_many :treatment_treatment_types | |
has_many :treatments, :through => :treatment_treatment_types | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'active_record' | |
class <ClassName> < ActiveRecord::Base | |
self.establish_connection( | |
:adapter => 'mysql', | |
:database => 'database_name', | |
:username => 'password' | |
) | |
self.abstract_class = true | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finalize the e-mail feaeture | |
send an e-mail to student when submitting with attachments | |
principal notificaton e-mail | |
access info e-mail principal | |
acknoledge e-mail when principal submiting his e-mail | |
integrate - emails templates | |
Change password change | |
upload path disappear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Syntax : rake features FEATURE=features/my_company.feature CUCUMBER_OPTS="--line <Line number>" | |
Ex: rake features FEATURE=features/my_company.feature CUCUMBER_OPTS="--line 20" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========== GEM File | |
group :test, :development do | |
gem "rspec-rails", "~> 2.0" | |
gem 'cucumber-rails', :require => false | |
gem 'database_cleaner' | |
gem 'capybara' | |
gem 'cucumber-rails-training-wheels' #Still running on 'L' board | |
gem "factory_girl_rails", ">= 4.1.0" | |
gem 'single_test' |
OlderNewer