Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile
Soho:Book jathayde$ rake book.pdf
(in /Users/jathayde/Sites/warv/Book)
<"book.pml" ruby "/Users/jathayde/Sites/warv/PPStuff/util/bin/preprocess/includer.rb" | ruby "/Users/jathayde/Sites/warv/PPStuff/util/bin/preprocess/embedcode.rb" --embed-skip-leading 'code/' >"book.xml"
Including: Bibliography.pml
Including: Introduction.pml
Including: Changes.pml
/usr/local/bin/ruby "/Users/jathayde/Sites/warv/PPStuff/util/bin/xmllint_fe.rb" xmllint --noout --valid "book.xml"
xsltproc "/Users/jathayde/Sites/warv/Book/local/xml/ppb2latex.xsl" book.xml >book.tex
TEXINPUTS=.:local/tex:../PPStuff/util/tex/BOOK:../PPStuff/util/tex::../PPStuff/bibliography:../PPStuff/sales_blurb </dev/null latex book | ruby "/Users/jathayde/Sites/warv/PPStuff/util/bin/tidyop.rb" --quiet
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
ActiveRecord::UnknownAttributeError in ComponentsController#create
unknown attribute: _destroy
RAILS_ROOT: /Users/jathayde/Sites/optoro/inventory
Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2906:in `assign_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2902:in `each'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2902:in `assign_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2775:in `attributes='
<h2>This item has been marked as</h2>
<p class="unit-status"><%= unit.status.humanize %></p>
<!-- PDI - What is this code?! -->
<ul>
<li>
<img src="" alt="" />
</li>
<li>
<ul>
<li><%= unit.product.title if unit.product %></li>
input[type='text'] {
borer: 1px solid #ccc;
padding: 2px;
}
<% @unit.unit_client_scans.each do |client_scan| %>
&nbsp;• <%= client_scan.value %><br />
<% end %>
# Create a primary member
@levine = Member.create!(:firstname => "Richard",
:lastname => "Levine",
:member_type => "",
:email => "[email protected]",
:homephone => "(301)469-0485",
:workphone => "(301)529-2586",
:cellphone => "(301)529-2586",
:alt_email => "[email protected]",
:address => "12214 Greenbriar Branch Drive",
# Create a primary member
@lastname = Member.create!(:firstname => "",
:lastname => "",
:id => 1,
:member_type => "",
:email => "",
:homephone => "",
:workphone => "",
:cellphone => "",
:alt_email => "",
Soho:snack-bar jathayde$ rake db:seed --trace
(in /Users/jathayde/Sites/snack-bar)
** Invoke db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:seed
"Created 3 roles"
"Created 3 users with roles"
rake aborted!
undefined method `name' for nil:NilClass
SyntaxError in RegistrationsController#create
/Users/jathayde/Sites/snack-bar/app/models/registration_mailer.rb:8: syntax error, unexpected tASSOC, expecting '}'
body { :account => account }
^
/Users/jathayde/Sites/snack-bar/app/models/registration_mailer.rb:16: syntax error, unexpected tASSOC, expecting '}'
body { :account => account, :login_url => new_us...
^
/Users/jathayde/Sites/snack-bar/app/models/registration_mailer.rb:16: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.'
...ount => account, :login_url => new_user_session_url }
<script src="javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="javascripts/application.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$('#thumb1').click(function() {
$('#feature').attr('src', 'images/feature1.jpg');
});
$('#thumb2').click(function() {
$('#feature').attr('src', 'images/feature2.jpg');