开发者

Is it possible to use Hirb in the Heroku Console?

I have an app deployed on Heroku. I can access the remote heroku c开发者_JS百科onsole from my local computer via the command:

heroku console

I have the Hirb gem installed in my app by putting Hirb in my gemfile, I am able to but cannot get any of the Hirb formatting to show up.

In Heroku console, I can run:

Hirb.enable 

and in return, get

=> true

But when I run User.all I don't get a table in return, just the old unformatted records. Is there anyway to get Hirb working on Heroku console?


There is a workaround described in a GitHub issue at https://github.com/cldwalker/hirb/issuesearch?state=closed&q=heroku#issue/37

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜