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
rake aborted! | |
NaN | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/base/generator.rb:120:in `round' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/base/generator.rb:120:in `round_to_tenths' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/generators/rcov.rb:74:in `to_h' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/base/generator.rb:116:in `generate_report' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/base/generator.rb:51:in `generate_report' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/base/report.rb:54:in `add' | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/../tasks/metric_fu.rake:6 | |
/Library/Ruby/Gems/1.8/gems/jscruggs-metric_fu-1.0.2/lib/../tasks/metric_fu.rake:6:in `each' |
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
- form_for(:search, :url => search_url) do |f| | |
= f.text_field :first_name | |
= submit_tag 'Search' |
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
def inbound_status(flight) | |
"Flight status #{flight.gate}" | |
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
def items=(objects) | |
objects = [objects] if objects.class != Array | |
objects.map! { |o| (o.is_a? Integer) ? o : o.id } | |
ItemStoreMembership.delete_all(["store_id = ?", self.id]) | |
objects.each do |o| | |
ItemStoreMembership.create(:store_id => self.id, :item_id => id) | |
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
A(MasterPid, N) -> | |
Result = B(N), | |
MasterPid ! {self(), Result}. | |
% B is tail recursive | |
B(N).... |
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
def create | |
@store = Store.new(params[:store]) | |
respond_to do |format| | |
if @store.save | |
flash[:notice] = 'Store was successfully created.' | |
format.html { redirect_to(@store) } | |
format.xml { render :xml => @store, :status => :created, :location => @store } | |
format.js { | |
render :json => {:success=>true,:content=>"<div><strong>found </strong></div>"} |
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
property :country, String, :nullable => false, :lazy => true, | |
:set => COUNTRY_CODES, | |
:messages => { | |
:set => 'Country must be a valid ISO 3166-1-alpha-2 code' | |
} |
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
def set_local_departure_time | |
local_departure_time= origin.timezone.utc_to_local(published_departure_time) | |
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
Loading init file from /Users/jon/code/tmp/flightcaster/config/init.rb | |
Loading /Users/jon/code/tmp/flightcaster/config/environments/development.rb | |
/usr/local/lib/ruby/gems/1.8/gems/dm-validations-0.10.0/lib/dm-validations/auto_validate.rb:4: uninitialized constant DataMapper::Property::OPTIONS (NameError) | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/dm-validations-0.10.0/lib/dm-validations.rb:4 | |
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/core_ext/kernel.rb:150:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/core_ext/kernel.rb:150:in `load_dependency' | |
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:405:in `load_dependencies' | |
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.1/lib/merb-core/bootloader.rb:405:in `each' |
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
~ Loaded DEVELOPMENT Environment... | |
~ You didn't create Bundler Gemfile manifest or you are not in a Merb application. If you are trying to create a new merb application, use merb-gen app. | |
./ext/dm-types/timezone.rb:5: uninitialized constant DataMapper::Type (NameError) | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Volumes/USB/code/flightcaster/config/init.rb:20 |
OlderNewer