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
ruby-merb@localhost ~/merb-project $ bin/merb-gen app --template-engine=haml . | |
Generating with app generator: | |
[IDENTICAL] gems | |
[ADDED] .gitignore | |
[ADDED] public/.htaccess | |
[ADDED] tasks/doc.thor | |
[ADDED] public/javascripts/jquery.js | |
[ADDED] doc/rdoc/generators/template/merb/index.html.erb | |
[ADDED] doc/rdoc/generators/template/merb/merb_doc_styles.css | |
[ADDED] doc/rdoc/generators/template/merb/merb.rb |
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
ruby-merb@localhost ~/merb-project $ nano config/dependencies.rb | |
ruby-merb@localhost ~/merb-project $ cat config/dependencies.rb | |
# dependencies are generated using a strict version, don't forget to edit the dependency versions when upgrading. | |
merb_gems_version = "1.0.8.1" | |
dm_gems_version = "0.9.10" | |
do_dems_version = "0.9.11" | |
# For more information about each component, please read http://wiki.merbivore.com/faqs/merb_components | |
dependency "merb-action-args", merb_gems_version | |
dependency "merb-assets", merb_gems_version |
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
ruby-merb@localhost ~/merb-project $ rm merb.thor | |
ruby-merb@localhost ~/merb-project $ thor merb:gem:install | |
Beginning transaction | |
Installing haml-2.0.6 | |
Installing merb-haml-1.0.7.1 | |
Installing do_mysql-0.9.10.1 | |
Building native extensions. This could take a while... | |
Installing dm-serializer-0.9.9 | |
Installing gem_plugin-0.2.3 | |
Installing daemons-1.0.10 |
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
ruby-merb@localhost ~/merb-project $ bin/merb -p 4002 | |
Loading init file from /home/ruby-merb/merb-project/config/init.rb | |
Loading /home/ruby-merb/merb-project/config/environments/development.rb | |
~ Connecting to database... | |
~ Loaded slice 'MerbAuthSlicePassword' ... | |
~ Parent pid: 14756 | |
~ Compiling routes... | |
~ Activating slice 'MerbAuthSlicePassword' ... | |
merb : worker (port 4002) ~ Starting Mongrel at port 4002 | |
merb : worker (port 4002) ~ Successfully bound to port 4002 |
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
ruby-merb@localhost ~/merb-project $ nano config/database.yml | |
ruby-merb@localhost ~/merb-project $ cat config/database.yml | |
--- | |
# This is a sample database file for the DataMapper ORM | |
development: &defaults | |
# These are the settings for repository :default | |
adapter: mysql | |
host: localhost | |
username: root | |
password: |
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
ruby-merb@localhost ~/merb-project $ git init | |
Initialized empty Git repository in /home/ruby-merb/merb-project/.git/ | |
ruby-merb@localhost ~/merb-project $ git add . | |
ruby-merb@localhost ~/merb-project $ git commit -m "first commit" | |
ruby-merb@localhost ~/merb-project $ git status | |
# On branch master | |
nothing to commit (working directory clean) |
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
- # passed in a quote object | |
%div.quote{ :id => "quote_#{quote.id}" } | |
%p | |
%span.action | |
x | |
= "#{quote.product_name}, #{quote.asset_cost.to_currency(:au)} over #{quote.term} months" | |
- quote.quote_results.each do |qr| | |
%p | |
= qr.id |
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
user@slice01 /var/www/app.com/www/private $ /var/www/app.com/www/private/merb_app/bin/merb -m /var/www/app.com/www/private/merb_app/bin/merb --help | |
/usr/lib64/ruby/site_ruby/1.8/rubygems.rb:636:in `report_activate_error': Could not find RubyGem merb-core (= 1.0.7.1) (Gem::LoadError) | |
from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:141:in `activate' | |
from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:49:in `gem' | |
from /var/www/app.com/www/private/merb_app/bin/merb:30 | |
user@slice01 /var/www/app.com/www/private $ gem --version | |
1.3.1 | |
user@slice01 /var/www/app.com/www/private $ cd merb_app/ | |
user@slice01 /var/www/app.com/www/private/merb_app $ bin/merb --help | |
Usage: merb [uGdcIpPhmailLerkKX] [argument] |
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
# FROM | |
BUNDLED_SPECS = File.join(Dir.pwd, "gems", "specifications") | |
# TO | |
BUNDLED_SPECS = File.join(File.expand_path(File.dirname(__FILE__)), "..", "gems", "specifications") |
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
"@quote.brokerage_percent = 2.86" | |
#<Quote id=nil asset_cost=#<BigDecimal:2afb41396bd0,'0.7E5',9(18)> asset_age=0 term=60 product_id="CON0" product_name="Consumer Loan" gst_dollar=#<BigDecimal:2afb41396a90,'0.0',9(9)> residual_percent=#<BigDecimal:2afb41397238,'0.0',9(9)> residual_dollar=#<BigDecimal:2afb413970f8,'0.0',9(9)> brokerage_percent=#<BigDecimal:2afb413904b0,'0.2857142857 1428571428 5714285714 2857142857 1428571428 5714285714 2857142857 143E1',81(90)> brokerage_dollar=#<BigDecimal:2afb41396900,'0.2E4',9(18)> brokerage_split1_dollar=nil brokerage_split2_dollar=nil amount_financed=#<BigDecimal:2afb4138f600,'0.72E5',9(27)> is_active=true created_at=nil updated_at=nil user_id=2> | |
#<BigDecimal:2afb413904b0,'0.2857142857 1428571428 5714285714 2857142857 1428571428 5714285714 2857142857 143E1',81(90)> | |
#<DataMapper::Validate::ValidationErrors:0x2afb41397670 @errors={:brokerage_percent=>["Brokerage percent must be a number"]}> | |
#<Quote id=nil asset_cost=#<BigDecimal:2afb41396bd0,'0.7E5',9(18)> asset_age=0 t |