摘要:
git指南: https://github.com/plataformatec/devise 维基百科上有how to 的很多文章。 Stackoverflow有大量问题的答案。 全的文档devise:API 7-20新增: warden:https://github.com/wardencommu 阅读全文
摘要:
validates处理验证错误:详见ActiveModel::Errors文档 一,errors ActiveModel::Errors的实例包含所有的❌。每个错误:key是每个属性的name, value是一个数组,包含错误消息string. 例子: person = Person.new per 阅读全文
摘要:
Rspec: test Slim :可以取代ERB的模版语言。(简单了解了以下,方便写代码,但我觉得不方便读。还是用原生的html) Webpack管理css: 不再使用app/assets/stylesheets。 以上都是可选的。 总文档连接: RSpec.info/documentation/ 阅读全文
摘要:
https://reactjs.org/docs/jsx-in-depth.html JSX in Depth https://babeljs.io/ JS编译器,学习react和JS直接的转换。 JSX仅支持句法糖syntactic sugar: React.createElement(compo 阅读全文
摘要:
Component不要写成, Componment 阅读全文
摘要:
The smallest React example looks like this: ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') ); 介绍JSX a syntax extension to Ja 阅读全文
摘要:
JavaScript 也称 ECMAScript as "JavaScript" It is designed to run as a scripting language in a host environment, and it is up to the host environment to 阅读全文
摘要:
Rails5.1增加了Webpacker: Webpacker essentially is the decisions made by the Rails team and bundled up into a gem. Webpacker帮我们做好了几乎所以配置工作,我们只需要聚焦在写Js上。 R 阅读全文
摘要:
遇到一个参数prompt,使用rails ,API没有找到,怎么办? site关键字 在全网搜索或者google一下,或是在stack overflow 上找答案 prompt 是FormOptionHelp中的方法select( select_tag)的可选参数,给html option元素加一个 阅读全文
摘要:
https://segmentfault.com/a/1190000004322487 介绍xhr(XMLHttpRequest协议)。底部有相关学习知识连接。 w3cschool有基础。 Animation 纯css实现动画效果,不需要flash或js. js有一个setInterval(func 阅读全文