This file contains 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
jamess-mac-mini:mi1 mutuelinvestor$ jruby -S rake db:migrate | |
rake aborted! | |
superclass mismatch for class SQLiteAdapter | |
(See full trace by running task with --trace) | |
jamess-mac-mini:mi1 mutuelinvestor$ jruby -S rake db:migrate --trace | |
rake aborted! | |
superclass mismatch for class SQLiteAdapter | |
/Users/mutuelinvestor/torquebox-2.0.0.beta1/jruby/lib/ruby/gems/1.8/gems/citier-0.1.14/lib/citier/sql_adapters.rb:17:in `ConnectionAdapters' | |
/Users/mutuelinvestor/torquebox-2.0.0.beta1/jruby/lib/ruby/gems/1.8/gems/citier-0.1.14/lib/citier/sql_adapters.rb:16:in `ActiveRecord' |
This file contains 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
#Modeling Parent Child Relationships | |
rails new confusingTitleProject | |
cd confusingTitleProject | |
rails g model Person name:string | |
rails g model PersonRelationship parent_id:integer child_id:integer | |
#App/Models/PersonRelationship.rb |
This file contains 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 | |
remote: http://rubygems.org/ | |
remote: http://torquebox.org/2x/builds/LATEST/gem-repo/ | |
specs: | |
haml (3.1.2) | |
json (1.5.1-java) | |
rack (1.3.2) | |
rack-accept (0.4.4) | |
rack (>= 0.4) | |
rack-flash (0.1.1) |
This file contains 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
source :rubygems | |
source 'http://torquebox.org/2x/builds/LATEST/gem-repo/' | |
gem "sinatra", "1.2.6" | |
gem "rack-flash", '0.1.1' | |
gem 'haml', '~>3.0' | |
gem 'sass', '~>3.0' | |
gem "tobias-jmx", '0.8' | |
gem 'json', '1.5.1' |
This file contains 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
my_job.rb | |
class MyJob | |
attr_accessor :log | |
def run() | |
log.info( "Executing the job" ) | |
end | |
end |
This file contains 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
my_job.rb | |
class MyJob | |
attr_accessor :log | |
def run() | |
log.info( "Executing the job" ) | |
end | |
end |
This file contains 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
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'activerecord-jdbcsqlite3-adapter' | |
gem 'jruby-openssl' |
This file contains 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
jamess-mac-mini:mi1 mutuelinvestor$ rake torquebox:run --trace | |
** Invoke torquebox:run (first_time) | |
** Invoke torquebox:check (first_time) | |
** Execute torquebox:check | |
rake aborted! | |
No TorqueBox deployer installed in /Users/mutuelinvestor/torquebox-current/jboss/server/default/deployers | |
/Users/mutuelinvestor/torquebox-2.x.incremental.435/jruby/lib/ruby/gems/1.8/gems/torquebox-rake-support-1.1.1/lib/torquebox/deploy_utils.rb:96:in `check_server' | |
/Users/mutuelinvestor/torquebox-2.x.incremental.435/jruby/lib/ruby/gems/1.8/gems/torquebox-rake-support-1.1.1/lib/torquebox/rake/tasks/server.rb:28:in `(root)' | |
org/jruby/RubyProc.java:274:in `call' | |
org/jruby/RubyProc.java:229:in `call' |
This file contains 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
jamess-mac-mini:mi1 mutuelinvestor$ rake torquebox:run --trace | |
** Invoke torquebox:run (first_time) | |
** Invoke torquebox:check (first_time) | |
** Execute torquebox:check | |
rake aborted! | |
No TorqueBox deployer installed in /Users/mutuelinvestor/torquebox-current/jboss/server/default/deployers | |
/Users/mutuelinvestor/torquebox-2.x.incremental.435/jruby/lib/ruby/gems/1.8/gems/torquebox-rake-support-1.1.1/lib/torquebox/deploy_utils.rb:96:in `check_server' | |
/Users/mutuelinvestor/torquebox-2.x.incremental.435/jruby/lib/ruby/gems/1.8/gems/torquebox-rake-support-1.1.1/lib/torquebox/rake/tasks/server.rb:28:in `(root)' | |
org/jruby/RubyProc.java:274:in `call' | |
org/jruby/RubyProc.java:229:in `call' |