github.com issue本文 If the attribute is not changed, then update_attribute does not run SQL query, this effectively means that no change was made to the attribute. 属性が変更されなかったらupdate_attributeメソッドはSQLクエリを実行せず、実…
github.com issue本文 I think DateTime#blank? should be use Object#blank? method. DateTime#blank? は Object#blank? を使うべきだと思う。 WDYT?(Why do you thihk?) どう思う? 返事 Inheritance is only left to non-whitelisted classes. The method…
github.com 本文 non select クエリーを exec_query#ActiveRecordで実行すると失敗する。 ActiveRecord::Base.connection.exec_query( 'update orders set id=1 where id=1' ) これのようなnon select クエリーを実行。 NoMethodError: undefined method `fi…
github.com Be consistent in testing outputs from railties test and use /bin/rails by vipulnsward · Pull Request #23212 · rails/rails · GitHub に関連する。
issueの本文開始。 ActiveRecordのwhereは ハッシュのキー「 db_name.table_name.column_name」をサポートするべきです。 Now db_name.table_name.column_name is not supported as key of hash 今、db_name.table_name.column_nameはハッシューのキーとして…
/proc を探検する - いますぐ実践! Linuxシステム管理 / Vol.023 名前解決の理解がかなり曖昧だった。 NSサーバを適当に登録して、aレコードやcnameレコードを適当に投稿してWEBサーバのバーチャルホストを設定するだけで大抵動くので曖昧のままでご飯を食べ…
telnet でメールのチェックをする - いますぐ実践! Linuxシステム管理 / Vol.020 telnetでsmtpと話をした。 HELOしてRCPTしたら拒絶された。それとVRFYとEXPNした。 VRFYはユーザがいるか返してくれる。EXPNは転送先を返してくれるはずなんだけどnot found c…
WWW を使ってログをとる - いますぐ実践! Linuxシステム管理 / Vol.011 SSH で遠隔ログインした時にメールで通知する - いますぐ実践! Linuxシステム管理 / Vol.010 をやりました。 sshdがキックされると~/.ssh/rc が実行されるようで、そこにmailコマンドを…
RailsドキュメントのGetting Started が動かない。 Rails Documentation. Getting Started Tutorial not working. · Issue #19330 · rails/rails · GitHub 本文 あなたがgetting startedチュートリアルをフォローしているのなら、セクション5.2の終わりに気…
Weird behavior of POST, PUT and DELETE in Mozilla Firefox · Issue #19278 · rails/rails · GitHub FireFoxでPOST, PUT, DELETEをすると変な振る舞いをする 本文 Hi! I'm making forum https://github.com/vladzzag/rails-forum どうも、私はフォーラムサ…
Scope that finds nothing or ends with .first does another lookup · Issue #19249 · rails/rails 結果が見つからなくてfirstメソッドで終わるとscopeが別の結果になる。 本文 Rails4.2とRuby2.2だよ。 class Car < ActiveRecord::Base scope :where_color…
Time select and datetime select not honoring config.time_zone value · Issue #19229 · rails/rails issueの本文 time_select, datetime_select のフォームヘルパーがタイムゾーンを無視する。UTCから変換するべきだ。今はUTCで保存される。環境はRuby2.2…