会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
:)
博客园
首页
新随笔
联系
订阅
管理
2015年8月29日
Rails Gem notification_exception
摘要: ####添加 Gem````gem 'exception_notification'````#### 配置在 production.rb 里面配置邮件和添加 exception_notificaiton 配置```` # 配置邮件 config.action_mailer.delivery_me...
阅读全文
posted @ 2015-08-29 12:19 LaoQuans
阅读(284)
评论(0)
推荐(0)
2015年7月11日
Html5 drag and drop
摘要: ``` . A B C ```
阅读全文
posted @ 2015-07-11 18:29 LaoQuans
阅读(240)
评论(0)
推荐(0)
KeyCode
摘要: ``` var str = "" document.addEventListener("keydown", function(e){ console.log(e.keyCode) var ENTER = 13 if(e.keyCode == ENTER){ console.log(str) str = "" return; }...
阅读全文
posted @ 2015-07-11 18:27 LaoQuans
阅读(183)
评论(0)
推荐(0)
2014年12月16日
association classmethods
摘要: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
阅读全文
posted @ 2014-12-16 10:18 LaoQuans
阅读(156)
评论(0)
推荐(0)
2014年10月21日
mysql ruby tutorial
摘要: http://zetcode.com/db/mysqlrubytutorial/很不错的文章
阅读全文
posted @ 2014-10-21 20:50 LaoQuans
阅读(136)
评论(0)
推荐(0)
2014年10月14日
carrierwave mount uploader 的位置问题,奇怪
摘要: ### callbacks before_save :assign_qr_code ### mount uploader mount_uploader :qr_code_image, QrCodeUploader # 上面这两行代码换位置就不行了,为啥? private def as...
阅读全文
posted @ 2014-10-14 13:16 LaoQuans
阅读(313)
评论(0)
推荐(0)
2014年9月29日
device 默认路由
摘要: new_user_session GET /users/sign_in {:controller=>"devise/sessions", :action=>"new"} user_session POST /users/sign...
阅读全文
posted @ 2014-09-29 12:08 LaoQuans
阅读(192)
评论(0)
推荐(0)
2014年9月21日
ActiveRecord::ConnectionAdapters::TableDefinition | column相关方法学习笔记
摘要: TableDefinition 的对象,就是我们在写 migrate 的时候使用的对象 t如下class SomeMigration "ActiveRecord::ConnectionAdapters::TableDefinition" end end def down ... ...
阅读全文
posted @ 2014-09-21 17:59 LaoQuans
阅读(277)
评论(0)
推荐(0)
ActiveRecord::ConnectionAdapters::SchemaStatements | 有关 Column 的常见方法笔记
摘要: 跟 column相关的常见的方法有:column_exists? (table_name, column_name, type = nil, options = {})add_column (table_name, column_name, type, options = {})remove_co...
阅读全文
posted @ 2014-09-21 17:04 LaoQuans
阅读(339)
评论(0)
推荐(0)
ActiveRecord::ConnectionAdapters::SchemaStatements | 有关Table 的常见方法笔记
摘要: 常见的方法有 : create_table, drop_table, rename_table, change_table, table_exist?详细如下:最常见的创建表格: create_table(table_name, options={})table_name 参数可以是字符串或者是符号...
阅读全文
posted @ 2014-09-21 15:39 LaoQuans
阅读(288)
评论(0)
推荐(0)
下一页
公告