参照你的的方法,问题已解决,谢谢大佬
bundle config set --global mirror.https://rubygems.org https://gems.ruby-china.com
结果还是:
这么贵,还不如去学其他语言,更有性价比
想问下,这个部署线上的话 seo 怎么样
HTMX 火了吗
感谢各位大佬的帮助,目前我的新的学习环境已经搭建出来了:mac 上直接装 rbenv 管理 ruby,win 上用 wsl2 装 rbenv 管理 ruby,数据库据之类的直接放在 Docker 里跑,目前比全放在 docker 里跑已经快太多了
好的哦,谢谢各位大佬的分享
好的,谢谢大佬
对于我这个初学者很不错,现在可以换着读文档了
应该要这样,我打算以后都用 mac 学习 ruby 了
我试了把项目文件放在 wsl2 里后感觉变化不大,是不是操作错了
好的哦,应该是这个问题,我今天下班了回去试试
Started GET "/articles" for 172.20.0.1 at 2023-07-25 09:34:33 +0000
Cannot render console from 172.20.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
Processing by ArticlesController#index as HTML
Rendering layout layouts/application.html.erb
Rendering articles/index.html.erb within layouts/application
[1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
↳ app/views/articles/index.html.erb:10
Rendered articles/index.html.erb within layouts/application (Duration: 3.5ms | Allocations: 742)
Rendered layout layouts/application.html.erb (Duration: 5.4ms | Allocations: 1492)
Completed 200 OK in 3646ms (Views: 6.1ms | ActiveRecord: 0.4ms | Allocations: 1846)
Started GET "/articles" for 172.20.0.1 at 2023-07-25 09:34:54 +0000
Cannot render console from 172.20.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
Processing by ArticlesController#index as HTML
Rendering layout layouts/application.html.erb
Rendering articles/index.html.erb within layouts/application
[1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
↳ app/views/articles/index.html.erb:10
Rendered articles/index.html.erb within layouts/application (Duration: 3.1ms | Allocations: 742)
Rendered layout layouts/application.html.erb (Duration: 5.1ms | Allocations: 1480)
Completed 200 OK in 3899ms (Views: 6.0ms | ActiveRecord: 0.4ms | Allocations: 1851)
Started GET "/articles" for 172.20.0.1 at 2023-07-25 09:35:04 +0000
Cannot render console from 172.20.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
Processing by ArticlesController#index as HTML
Rendering layout layouts/application.html.erb
Rendering articles/index.html.erb within layouts/application
[1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
↳ app/views/articles/index.html.erb:10
Rendered articles/index.html.erb within layouts/application (Duration: 3.1ms | Allocations: 742)
Rendered layout layouts/application.html.erb (Duration: 5.1ms | Allocations: 1477)
Completed 200 OK in 3748ms (Views: 6.0ms | ActiveRecord: 0.4ms | Allocations: 1832)
感觉和文件系统有关,在 mac docker 下都是秒回,win docker 测试了几遍拉文章列表,都要 3 秒多了
用的 rails 7,没有 webpacker 了
先关了,感觉可能是版本问题
楼上的两位大佬别吵啦,我只是个没学习 rb 多久的新手,这个问题也是偶然想到的,大佬们的观点对我都很有帮助,也希望大佬们能求同存异,谢谢!
chatgpt 的答案
AI 领域选择使用 Python 而不是 Ruby 有以下几个原因:
综上所述,Python 在 AI 领域中比 Ruby 更具优势,因而选择了 Python 作为优先开发语言。
正在学习 rails 中,感觉大佬分享
英语环境下会出现
有个小建议,视频可以加在一个合集里面,方便观看
可以啦,谢谢各位大佬
开了科学上网,homebrew 下载软件都很快,rbenv 安装 ruby 就慢的要死
已 star,下班了试试
rbenv 下载慢,有什么好的解决办法吗
感谢楼主,对新手很有用
感谢
大佬,现在还在吗?
看了大佬们的推荐,我也打算看 Programming Ruby 入门了
好的,赞美楼主
楼主牛逼,已 star,顺便问下有代码仓库地址吗