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 Note < ActiveRecord::Base | |
| belongs_to :customer | |
| attr_accessible :content | |
| end | |
| # == Schema Information | |
| # | |
| # Table name: notes | |
| # | |
| # id :integer not null, primary key | |
| # content :text |
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
| Searching 204 files for "@customer=" (regex) | |
| 0 matches across 0 files | |
| Searching 204 files for "@customer =" | |
| C:\Users\denton\code\billing\app\controllers\bills_controller.rb: | |
| 4 def new | |
| 5 @bill = Bill.new |
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
| #app/models/bill.rb | |
| class Bill < ActiveRecord::Base | |
| belongs_to :customer | |
| attr_accessible :amount, :date_due, :paid | |
| before_create :default_values | |
| before_save self.update_date_paid | |
| def default_values | |
| self.paid ||= false |
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
| ["hello","good day","how do you do"].each{ | |
| |s| | |
| caps( s ){ |x| x.capitalize! | |
| puts( x ) | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Billing</title> | |
| <link rel="icon" type="image/png" href="/favicon.png"> | |
| <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
| <link href="/assets/activity_feed.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
| <link href="/assets/bills.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
| <link href="/assets/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
| <link href="/assets/chosen.css?body=1" media="all" rel="stylesheet" type="text/css" /> |
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@lucid32:/vagrant/etherpad-lite$ npm install clean-css | |
| npm http GET https://registry.npmjs.org/clean-css/0.3.2 | |
| npm http 200 https://registry.npmjs.org/clean-css/0.3.2 | |
| npm http GET https://registry.npmjs.org/clean-css/-/clean-css-0.3.2.tgz | |
| npm http 200 https://registry.npmjs.org/clean-css/-/clean-css-0.3.2.tgz | |
| npm http GET https://registry.npmjs.org/optimist | |
| npm http 200 https://registry.npmjs.org/optimist | |
| npm http GET https://registry.npmjs.org/optimist/-/optimist-0.1.9.tgz | |
| npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.1.9.tgz | |
| npm ERR! error installing clean-css@0.3.2 |
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 Bill < ActiveRecord::Base | |
| belongs_to :customer | |
| attr_accessible :amount, :date_due, :paid | |
| validates :amount, presence: true | |
| validates :date_due, presence: true | |
| before_create :default_values | |
| before_save :update_date_paid | |
| after_save :update_history |
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
| Sequel::DatabaseError at /customer | |
| NativeException: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. | |
| file: jdbc.rb location: execute line: 235 | |
| BACKTRACE | |
| (condense) | |
| JUMP TO: GET POST COOKIES ENV | |
| c:/dev/jruby-1.6.7/lib/ruby/gems/1.8/gems/sequel-3.34.1/lib/sequel/adapters/jdbc.rb in execute | |
| yield log_yield(sql){stmt.executeQuery(sql)} | |
| c:/dev/jruby-1.6.7/lib/ruby/gems/1.8/gems/sequel-3.34.1/lib/sequel/database/logging.rb in log_yield | |
| return yield if @loggers.empty? |
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
| unknown, String, foo | |
| unknown, Fixnum, 42 | |
| unknown, Array, |
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
| irb(main):041:0> true.class | |
| => TrueClass | |
| irb(main):042:0> true === TrueClass | |
| => false |