{"action":"created","issue":{"url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/40","labels_url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/40/comments","events_url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/40/events","html_url":"https://github.com/prawnpdf/prawn-table/issues/40","id":55943371,"number":40,"title":"Error loading the gem on Rails 4","user":{"login":"bluegod","id":999323,"avatar_url":"https://avatars.githubusercontent.com/u/999323?v=3","gravatar_id":"","url":"https://api.github.com/users/bluegod","html_url":"https://github.com/bluegod","followers_url":"https://api.github.com/users/bluegod/followers","following_url":"https://api.github.com/users/bluegod/following{/other_user}","gists_url":"https://api.github.com/users/bluegod/gists{/gist_id}","starred_url":"https://api.github.com/users/bluegod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluegod/subscriptions","organizations_url":"https://api.github.com/users/bluegod/orgs","repos_url":"https://api.github.com/users/bluegod/repos","events_url":"https://api.github.com/users/bluegod/events{/privacy}","received_events_url":"https://api.github.com/users/bluegod/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T19:17:35Z","updated_at":"2015-01-30T09:23:27Z","closed_at":"2015-01-30T09:23:27Z","body":"I'm not sure if I missed something here but I get the following error after adding the gem to my Gemfile:\r\n\r\n    NoMethodError: undefined method `extensions' for Prawn::Document:Class\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@cmi/gems/prawn-table-0.2.1/lib/prawn/table.rb:700:in `<top (required)>'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:85:in `require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:85:in `rescue in block in require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:68:in `block in require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'\r\n    /Users/my_user/Development/my_app/config/application.rb:8:in `<top (required)>'\r\n    /Users/my_user/Development/my_app/Rakefile:4:in `require'\r\n    /Users/my_user/Development/my_app/Rakefile:4:in `<top (required)>'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@cmi/bin/ruby_executable_hooks:15:in `eval'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@cmi/bin/ruby_executable_hooks:15:in `<main>'\r\n    LoadError: cannot load such file -- prawn-table\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'\r\n    /Users/my_user/Development/my_app/config/application.rb:8:in `<top (required)>'\r\n    /Users/my_user/Development/my_app/Rakefile:4:in `require'\r\n    /Users/my_user/Development/my_app/Rakefile:4:in `<top (required)>'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@cmi/bin/ruby_executable_hooks:15:in `eval'\r\n    /Users/my_user/.rvm/gems/ruby-2.1.2@cmi/bin/ruby_executable_hooks:15:in `<main>'\r\n    (See full trace by running task with --trace)\r\n\r\nGem versions:\r\n\r\nprawn (1.3.0)\r\nprawn-table (0.2.1)\r\nprawnto_2 (0.2.6)\r\n\r\nRuby 2.1.2\r\nRails 4.1.1\r\nOS: MAC OS 10.9.5\r\n\r\nThis is what it's around line 8 of application.rb:\r\n\r\n    # Require the gems listed in Gemfile, including any gems\r\n    # you've limited to :test, :development, or :production.\r\n    Bundler.require(:default, Rails.env)"},"comment":{"url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/comments/72174563","html_url":"https://github.com/prawnpdf/prawn-table/issues/40#issuecomment-72174563","issue_url":"https://api.github.com/repos/prawnpdf/prawn-table/issues/40","id":72174563,"user":{"login":"bluegod","id":999323,"avatar_url":"https://avatars.githubusercontent.com/u/999323?v=3","gravatar_id":"","url":"https://api.github.com/users/bluegod","html_url":"https://github.com/bluegod","followers_url":"https://api.github.com/users/bluegod/followers","following_url":"https://api.github.com/users/bluegod/following{/other_user}","gists_url":"https://api.github.com/users/bluegod/gists{/gist_id}","starred_url":"https://api.github.com/users/bluegod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluegod/subscriptions","organizations_url":"https://api.github.com/users/bluegod/orgs","repos_url":"https://api.github.com/users/bluegod/repos","events_url":"https://api.github.com/users/bluegod/events{/privacy}","received_events_url":"https://api.github.com/users/bluegod/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T09:23:27Z","updated_at":"2015-01-30T09:23:27Z","body":"Ok fixed:\r\n\r\nI had to add prawn even though it was implicitly required by prawnto.\r\n\r\ngem \"prawnto_2\", :require => \"prawnto\"\r\ngem 'prawn-table'\r\n\r\nchanged to:\r\n\r\ngem 'prawn'\r\ngem \"prawnto_2\", :require => \"prawnto\"\r\ngem 'prawn-table'"}}