开发者

Is it possible to use Hirb in the Heroku Console?

开发者 https://www.devze.com 2023-02-06 19:35 出处:网络
I have an app deployed on Heroku. I can access the remote heroku c开发者_JS百科onsole from my local computer via the command:

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

精彩评论

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

关注公众号