会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr-chen
首页
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
44
下一页
2019年5月14日
Rails 用Webpack安装Bootstrap(附录webpack使用)
摘要: 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)
2019年5月9日
Rails6新特性actionable Error
摘要: 视频: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)
2019年4月26日
mac上运行window程序。
摘要: wine https://wiki.winehq.org/Wine_User%27s_Guide#Quick_start
阅读全文
posted @ 2019-04-26 19:28 Mr-chen
阅读(182)
评论(0)
推荐(0)
2019年4月23日
实验性质的JIT compiler(Ruby2.6)
摘要: 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)
2019年4月18日
如何在Rails6内通过Webpacker使用JavaScript; flatpicker日期时间组件选择器
摘要: 如何在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)
Rails6使用tailwind CSS
摘要: 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)
2019年4月11日
使用Bootstrap Bar来增加Onboarding Progress Bar功能。
摘要: 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)
Rails6新增rails db:system:change更换数据库
摘要: 会改动database.yml和Gemfile2个文件。 ⚠️gemfile内的数据库版本号。当前rails6版本需要手动删除gem数据库的版本号后,再运行bundle命令。 需要重新创建数据库: 如果改❌了,用git stash命令➕git stash drop。
阅读全文
posted @ 2019-04-11 11:16 Mr-chen
阅读(220)
评论(0)
推荐(0)
2019年4月10日
如何为Rails作贡献:例增加rich_text field generators
摘要: 如何为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)
2019年4月4日
@mentions for Users with ActionText; 使用Tribute.js库
摘要: 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
下一页