umlet,轻量,方便。 也用过 astah,界面比较漂亮,但是好像还不支持 Retina
始终觉得有点绕,有没有纯 js 的方案呢
代码写得正嗨,突然被打断了。
Chrome 安装 Postman 插件
#4 楼 @benyu Rails 的 Engine 我不是很熟悉,或许跟这个也有关系? http://thomas.vondeyen.com/2011/11/09/precompile-assets-from-rails-3-1-engines/
#5 楼 @string2020 你原文中的用法应该是 3.1 之前的吧,看这个 http://apidock.com/rails/ActiveRecord/Base/find_by_sql/class
4.0 开始的用法就变成了数组,看这个 http://apidock.com/rails/ActiveRecord/Querying/find_by_sql
两者的 examples 差别就在于是不是总的作为一个数组传递,估计这就是关键了吧,你试试?
Post.find_by_sql ["SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date]
Post.find_by_sql ["SELECT body FROM comments WHERE author = :user_id OR approved_by = :user_id", { :user_id => user_id }]
参数是一个数组
#2 楼 @string2020 为什么用find_by_sql
,where
足够满足你的要求了
你的小图标放在哪里的? app/assets/images
?如果不是,就要加到config.assets.precompile
配置里边。
强大的 piedpiper
怎么好用?跟 cap2 相比较有没有什么方便或者高效的地方?楼主一句好用,叫人怎么真的赶快行动
$ rails -d
Error: Command '-d' not recognized
是指rails db
?
因为你不重启,内存中的代码是旧版本的啊,当然不行。所以,楼主,用这个 https://github.com/sosedoff/capistrano-unicorn 自动处理 capistrano 部署后重启 unicorn 服务器。
#7 楼 @xiaoronglv 感谢。
长江后浪推前浪啊
悬梁 coding 吧