<< Masa.20120224-fix-migel-view-atc-overview-oddb_org-drop-crawler-request-sbsm | Index | Masa.20120222-fix-grid_rg-htmlgrid-update-readme-ydpm >>
Check
Problem (z.B.)
module ODDB
module View
module Admin
class LoginForm < HtmlGrid::Form
COMPONENTS = {
[0,0] => :email,
#[0,1] => :pass,
#[1,2,0] => :remember_me,
#[1,2,1] => 'remember_me',
#[1,3] => :submit,
#[1,4] => :password_lost,
}
CSS_MAP = {
[0,0,2,5
] => 'list',
CSS_MAP = { [0,0] => 'list',
Commit
Error (with grid.rb)
error in SBSM::Session#to_html: /de/gcc/patinfos/range/a ArgumentError wrong number of arguments (3 for 2) /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/grid.rb:288:in `set_row_attributes' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/list.rb:72:in `block in compose_list' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/list.rb:65:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/list.rb:65:in `each_with_index' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/list.rb:65:in `compose_list'
Commit
Error (both grid.c, grid.rb)
error in SBSM::Session#to_html: /de/gcc/addresses/ NoMethodError undefined method `time' for #<Array:0x00000007289388> /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/stub.rb:113:in `method_missing' /home/masa/ywesee/oddb.org/src/view/admin/addresses.rb:46:in `time' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/composite.rb:68:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/composite.rb:283:in `compose_component' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/composite.rb:212:in `block in compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/composite.rb:205:in `each'
Check data type
ch.oddb> address_suggestions.values.map{|ad| ad.class}.uniq -> [ODDB::AddressSuggestion, Array] ch.oddb> address_suggestions.values.select{|ad| ad.is_a?(Array)}.length -> 1 ch.oddb> address_suggestions.values.select{|ad| ad.is_a?(Array)}.first.class -> Array ch.oddb> address_suggestions.values.select{|ad| ad.is_a?(Array)}.first.odba_id -> 28237279 ch.oddb> address_suggestion(28237279).class -> Array ch.oddb> delete_address_suggestion(28237279) -> Array ch.oddb> address_suggestions.values.select{|ad| ad.is_a?(Array)}.length -> 0
Note
Error
error in SBSM::Session#to_html: /de/gcc/home_admin/ RangeError 0x3fa81888dc90 is recycled object (drbssl://localhost:9997) /usr/lib64/ruby/1.8/drb/drb.rb:375:in `_id2ref' (drbssl://localhost:9997) /usr/lib64/ruby/1.8/drb/drb.rb:375:in `to_obj' (drbssl://localhost:9997) /usr/lib64/ruby/site_ruby/1.8/odba/drbwrapper.rb:70:in `to_obj' (drbssl://localhost:9997) /usr/lib64/ruby/1.8/drb/drb.rb:1402:in `to_obj' (drbssl://localhost:9997) /usr/lib64/ruby/1.8/drb/drb.rb:1704:in `to_obj' ...
Commit
Note (for development)
error in SBSM::Session#to_html: /de/gcc/indications/ TypeError nil can't be coerced into Fixnum /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/grid.rb:285:in `+' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/grid.rb:285:in `set_colspan' /home/masa/ywesee/oddb.org/src/view/alphaheader.rb:25:in `compose_header' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/list.rb:49:in `compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.4/lib/htmlgrid/composite.rb:57:in `init'
Commit
Note (to check Ruby load path)
ruby -e "p $:"
Problem
z.B
Note