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
get '/candidates/update_job_list' => 'candidates#update_job_list' | |
get '/candidates/add_job' => 'candidates#add_job' | |
get '/candidates/reassign_job' => 'candidates#reassign_job' | |
resources :hiring_events do | |
shallow do | |
resources :hiring_event_employers do | |
resources :hiring_event_jobs do | |
resources :candidates | |
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
diff --git a/Gemfile b/Gemfile | |
index 9b5044d..93a6626 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -35,8 +35,10 @@ gem 'airbrake' | |
gem 'newrelic_rpm' | |
gem "rpm_contrib", "~> 2.1.7" | |
+gem 'rails_admin', :git => 'git://github.com/halida/rails_admin.git' | |
+ |
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 Search < ActiveRecord::Base | |
MAX_SAVED_SEARCHES_COUNT = 10 | |
attr_accessible :keywords, :mocs, :last_activity_date, :source, :user_id | |
belongs_to :user | |
validates :user_id , presence: true | |
validate :saved_searches_count_check |
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
{ | |
"chef_server": { | |
"server_url": "http://localhost:4000", | |
"webui_enabled": true | |
}, | |
"run_list": [ "recipe[chef-server::rubygems-install]" ] | |
} |
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
#/etc/chef/client.rb on Node | |
log_level :info | |
log_location STDOUT | |
chef_server_url 'http://yourchefserver.com:4000' | |
validation_client_name 'chef-validator' |
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
Vagrant::Config.run do |config| | |
config.vm.define :node1 do |node_config| | |
node_config.vm.box = "lucid32" | |
node_config.vm.network :bridged | |
end | |
config.vm.define :node2 do |node_config| | |
node_config.vm.box = "precise32" | |
node_config.vm.network :bridged | |
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
gem "rspec" | |
gem "bundler" |
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
mkdir /etc/chef | |
cat << EOF > /etc/chef/solo.rb | |
file_cache_path "/tmp/chef-solo" | |
cookbook_path "/tmp/chef-solo/cookbooks" | |
node_name "app_server6" | |
EOF | |
cat << EOF > /etc/chef/chef.json | |
{ |
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
bundle exec rake db:seed | |
rake aborted! | |
undefined method `columns_hash' for nil:NilClass | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:223:in `column_for_attribute' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:81:in `field_changed?' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:63:in `write_attribute' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_methods/write.rb:14:in `class=' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `each' | |
/home/emil/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `assign_attributes' |
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
#!/usr/bin/env ruby | |
require 'thor' | |
class HomerRunner < Thor | |
default_task :help | |
desc "init", "Unleashes homer to feed on your dotfiles" | |
def init | |
puts "Homer Unleashed !" | |
end |
OlderNewer