上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 44 下一页
摘要: Rails6将默认使用webpack代替asset: 本文讲述如何自己配置。 参考: https://getbootstrap.com/docs/4.1/getting-started/webpack/ https://github.com/rails/webpacker https://gorai 阅读全文
posted @ 2019-05-14 11:58 Mr-chen 阅读(570) 评论(0) 推荐(0)
摘要: 视频:https://gorails.com/episodes/actionable-errors-in-rails-6?autoplay=1 这篇视频介绍了Rails6的一个新功能: actionable error 这个模块定义一个action来解决各种错误类型。通过在❌提示网页上添加了一个bu 阅读全文
posted @ 2019-05-09 19:27 Mr-chen 阅读(484) 评论(0) 推荐(0)
摘要: wine https://wiki.winehq.org/Wine_User%27s_Guide#Quick_start 阅读全文
posted @ 2019-04-26 19:28 Mr-chen 阅读(182) 评论(0) 推荐(0)
摘要: Ruby2.6的一个新的功能:Just in time complier 特点: 和传统的JIT编译器不一样之处:把代码写成C并存储在磁盘,并使用一个C编译器来生成native code。这样就节省了运行时间。改善了Ruby程序的执行效率。 传统的编译器如bootsnap会在第一次运行一个Ruby 阅读全文
posted @ 2019-04-23 11:15 Mr-chen 阅读(350) 评论(0) 推荐(0)
摘要: 如何在Rails6内通过Webpacker使用JavaScript; Rails6默认不再使用asset pipeline,改用Webpacker。 文件结构变化: 配置文件: webpacker.yml package.json查看安装的js库,可以使用yarn命令或者npm app/assets 阅读全文
posted @ 2019-04-18 11:28 Mr-chen 阅读(1205) 评论(0) 推荐(0)
摘要: tailwind的特色(在Bootstrap 和vanilla Css之间) https://tailwindcss.com/docs/what-is-tailwind/ Rails6 six版本的Rails使用rails new xxx后会生成: tailwind 安装tailwind 也可以在n 阅读全文
posted @ 2019-04-18 10:28 Mr-chen 阅读(493) 评论(0) 推荐(0)
摘要: git初始代码https://github.com/chentianwei411/at-mentions-with-action-text 首先,开分支onboardingbar. 然后, 在user.rb上添加 在_navbar.html.erb上添加导航链接: 在用户注册app/views/de 阅读全文
posted @ 2019-04-11 17:04 Mr-chen 阅读(227) 评论(0) 推荐(0)
摘要: 会改动database.yml和Gemfile2个文件。 ⚠️gemfile内的数据库版本号。当前rails6版本需要手动删除gem数据库的版本号后,再运行bundle命令。 需要重新创建数据库: 如果改❌了,用git stash命令➕git stash drop。 阅读全文
posted @ 2019-04-11 11:16 Mr-chen 阅读(220) 评论(0) 推荐(0)
摘要: 如何为Rails作贡献 例增加rich_text field generators 下载https://github.com/rails/rails 打开atom,在 rails/railties/lib/rails/generators/generated_attribute.rb 内的field 阅读全文
posted @ 2019-04-10 10:39 Mr-chen 阅读(207) 评论(0) 推荐(0)
摘要: git clone从https://github.com/chentianwei411/at-mentions-with-action-text 先fork下来,然后拷贝https连接,最后在terminal上: git clone https://github.com/chenwei/at-men 阅读全文
posted @ 2019-04-04 15:30 Mr-chen 阅读(1743) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 44 下一页