Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

A error at method print_table #185

Closed
simrb opened this Issue · 0 comments

2 participants

@simrb

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", ""]]

print_table(rows)

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'
@helios helios referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.