摘要:
http://guides.rubyonrails.org/action_controller_overview.html The flash is a special part of the session which is cleared with each request. This mean 阅读全文
摘要:
今天存储数据的时候报错,发现是3435065640超出了常规int的存储长度, RangeError (3435065640 is out of range for ActiveRecord::Type::Integer with limit 4) http://dev.mysql.com/doc/ 阅读全文
摘要:
When you first started coding, errors were probably the last thing you wanted to see. After all, it’s not a far stretch to associate “error” with “I m 阅读全文
摘要:
Often, classes will have shared characteristics with other classes. Rewriting the same methods for each class over and over again can be pretty cumber 阅读全文
摘要:
When calling an instance method like withdraw_securely, the syntax generally looks something like this: One would therefore think it’s safe to assume 阅读全文
摘要:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-debian-7 https://www.digitalocean.com/community/tu 阅读全文
摘要:
# cat /etc/issue Debian GNU/Linux 8 \n \l #apt-get update 阅读全文
摘要:
http://guides.rubyonrails.org/association_basics.html#polymorphic-associations http://guides.rubyonrails.org/association_basics.html#polymorphic-assoc 阅读全文
摘要:
Your latest client is a bank, and they’ve tasked you with requiring customers to enter their password in order to make withdrawals. Currently, this is 阅读全文
摘要:
By encapsulating all the logic for an object, whether it’s a Dog or a User or an IceCreamShop, you are able to keep all of the logic and responsibilit 阅读全文