Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

A error at method print_table #185

simrb opened this Issue Oct 19, 2011 · 0 comments


None yet
2 participants

simrb commented Oct 19, 2011

I have the array of hash below

rows = [["auth"], ["aid", "integer", "integer", "true", "true", ""], ["name", "string", "varchar(255)", "true", "false", ""], ["pawd", "string", "varchar(255)", "true", "false", ""], ["email", "string", "varchar(255)", "true", "false", ""], ["level", "integer", "integer", "true", "false", ""], ["lists"], ["lid", "integer", "integer", "true", "true", ""], ["name", "string", "varchar(255)", "true", "false", ""], ["pages"], ["pid", "integer", "integer", "true", "true", ""], ["title", "string", "varchar(255)", "true", "false", ""], ["description", "string", "varchar(255)", "true", "false", ""], ["level", "integer", "integer", "true", "false", ""], ["posts"], ["pid", "integer", "integer", "true", "true", ""], ["body", "string", "text", "true", "false", ""], ["aid", "integer", "integer", "true", "false", ""]]


The error message

/home/app/ruby/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/shell/basic.rb:120:in `print_table': undefined method `insert' for nil:NilClass (NoMethodError)
    from /home/app/ruby/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/shell.rb:69:in `print_table'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment