All slide content and descriptions are owned by their creators. 続きを読む
README.md Xray Reveal your UI's bones The dev tools available to web developers in modern browsers are great. Many of us can't remember what life was like before "Inspect Element". But what we see in the compiled output sent to our browser is... 続きを読む
Secure defaults are critical to building secure systems. If a developer must take explicit action to enforce secure behavior, eventually even an experienced developer will forget to do so. For this reason, security experts say: “Insecure by ... 続きを読む
Rails で、Controller に定義されている action を一度に取得する方法はありますか? 表題のとおり、Rails で Controller に登録されている action を一覧できるメソッドなどはありますか? 用途としては、以下のように caches_action で action 名を指定する時... 続きを読む
2013年1月10日木曜日 vanityとchankoを使ってRailsで簡単安全にABテストをする vanityはRailsのABテスト用ライブラリ。導入が一番簡単っぽい。 元々はテキストとか画像をのABテストを行うためのもののようだが、 chankoという限定公開用のライブラリを使って、... 続きを読む
README.md RailsPanel RailsPanel is a Chrome extension for Rails development that will end your tailing of development.log. Have all information about your Rails app requests in the browser - in the Developer Tools panel. Provides insight to d... 続きを読む
アクションキャッシュやフラグメントキャッシュなどで使われる Rails.cache ですが、CacheSweeperなどで複雑なexpire条件を組んだ時に、仕込んだキャッシュがちゃんと期待通りにヒットしたりミスしたりしているのかどうかをテストしたい場合があります。 実装 s... 続きを読む
「Ruby 2.0 & Rails 4.0先取りセミナー」の講演資料 (2012/11/21, Web CAT Studioさん主催) http://atnd.org/events/33996 続きを読む
検索ヘルプ tag:タグ名 タグで絞り込んで検索 user:ユーザーID ユーザーIDで絞り込んで検索 tag:とuser:の併用可能。 tag:およびuser:に設定できる項目は1件のみになります。 続きを読む
Turbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas. 続きを読む
昨日 @bekkou68 さんに「前島さんってどうやってRubyやRails関連の情報を収集しているんですか?」って聞かれたのでまとめてみます。とりあえず海外のブログ限定で。日本ブログ編は気が向いたらやります…。 RailsCasts 有名すぎて説明不要かもしれませんね。毎... 続きを読む
I am using Single Table Inheritance and have comments on all the subclasses. I am only using 1 controller for all the different STI types. When the form_for helper generates a URL for a subtype it tries to use a helper for the subtype, but I ... 続きを読む
The 4.0 release of Ruby on Rails is right around the corner. I'm going to highlight some of the new features and changes in the newest version of Rails, as well as features that will be removed or deprecated in Rails core. 続きを読む
Copyright © 2012 GitHub Inc. All slide content and descriptions are owned by their creators. F.A.Q. Terms of Service Privacy Policy 続きを読む
I've decided to finally update my advanced caching post. The original is over a year old. It's still one of the most referenced and respected posts on the subject. This revision is a refactor and update all rolled into one. I've decided to sp... 続きを読む
Rails 4でSinatra::Streaming相当のストリーミング機構が入るとのことですが、そもそもRackやEventMachineに寄り添ったストリーミングは筋悪というか強引すぎると考えていて(Phusionの人の懸念に近い)、それなら最初から向いてるテクノロジーを使ったほうがいい... 続きを読む
TL;DR Rails 4.0 will allow you to stream arbitrary data at arbitrary intervals with Live Streaming. Besides enabling multi-threading by default, one of the things I really wanted for Rails 4.0 is the ability to stream data to the client. I wa... 続きを読む
Rails 3.2.7がリリースされましたが、アップデートする際に注意です。 おそらくバグだと思うのですが、引数なしでrake specした際、Rails.envがdevelopmentになってしまいます。 # まずはRails 3.2.7をインストール rails new rails327 --skip-bundle cd rails3... 続きを読む
ITエンジニア向けの質問・回答コミュニティ「QA@IT」で、「RSpec のテストがたくさんついたオープンソースの Rails3 アプリはあるでしょうか」という質問に対して回答したところ、少しはてブが付いたりしたようです。Railsに限らないかもしれませんが、ちょっと... 続きを読む
Ruby のガベレージコレクションのパフォーマンスチューニングをする方法に環境変数を指定する方法があります。Ruby Enterprise Edition でも同様の設定が可能なので、パフォーマンスチューニングできるか試してみました。 以下、それぞれの環境変数の意訳です。... 続きを読む