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 ... 続きを読む
Earlier today a routine system email was incorrectly sent to many of our GitHub Enterprise customers. In these errant emails, customer email addresses were included in the To: field, making them visible to anyone who received the message. We ... 続きを読む
Railsでlocaleの翻訳が見つからなかったとき、“translation missing”はログに出して、viewにはhumanizeした文字列を出す 続きを読む
When debugging routes it can sometimes be difficult to understand exactly how the paths are matched. This PR adds a JS based path matching widget to the /rails/info/routes output. You can enter in a path, and it will tell you which of the rou... 続きを読む
And run rake routes, this is the output: foo_bar /:locale/foo/bar(.:format) :locale/foo#bar I would expect the following output: foo_bar /:locale/foo/bar(.:format) foo#bar It prepends the scope to the controller. When I test to access the rou... 続きを読む
Open senny wants to merge 1 commit into rails:master from senny:7554_combining_scope_and_match_in_routes 続きを読む
現状、内部APIとの通信はHTTPで行われており、localhostへの接続とはいえそれなりに通信コストがかかっているため、今後、内部APIはPHP-FPMで動かし、unix domain socket経由で叩けるようにしたいところです。http://inside.pixiv.net/blog/2012/11/08/pixiv-do... 続きを読む
This is part of a series of posts on Ember.js. Please read Warming up to Ember.js as well as the Ember.js home page if you’re new to Ember.js. As promised in Part 1 of this series, this post will show how the example app uses our ultra-simpl... 続きを読む
Railsのデフォルトだとセッションの保存先はCookieになるけど、様々な事情からサーバ側にセッションのデータを持ちたくなることがある。 Railsはセッションの保存先をMySQLにすることもできるけど、expireがめんどくさいとか他いろいろを考えて使いたくない。 m... 続きを読む
Last Updated: 03 July 2012 Table of Contents Use case Warning Enabling Disabling This Heroku Labs feature adds experimental support for having an app’s config vars be present in the environment during slug compilation. The features added thr... 続きを読む
README.md Purpose The purpose of ActiveModel::Serializers is to provide an object to encapsulate serialization of ActiveModel objects, including ActiveRecord objects. Serializers know about both a model and the current_user, so you can custom... 続きを読む
rubyRails 3.1 以降で良く使われるようになった therubyracer ですが、最近、これを含む bundle install がやたらと時間がかかったり、あるいはそもそも失敗してしまう、という事象が多数報告されています。 解決方法以下の三つの方法が基本的な解決方法です。 ... 続きを読む
ember-rails allows you to include Ember.JS into your Rails 3.1+ application. The gem will also pre-compile your handlebars templates when building your asset pipeline. It includes development and production copies of Ember. You can see an exa... 続きを読む
Ruby on Rails Guides These are Edge Guides, based on the current master branch. If you are looking for the ones for the stable version please check http://guides.rubyonrails.org instead. These guides are designed to make you immediately produ... 続きを読む
README.md Better Errors Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails. Features Full stack trace Source code inspection for all stack frames (with highli... 続きを読む
2012-12-04 Railsのpartial viewにファイル名をコメントで埋め込むやつ @todesking氏の<a href="http://d.hatena.ne.jp/gnarl/20121130/1354284297"">Rails、レンダリングされたHTMLのどこがどのpartialから来たのかをコメントとして埋めるが良かったので、改良... 続きを読む
最近のRuby on Railsプロジェクトで使ってるもの・やっていることを紹介します。 rake setup ちょっと前にこの記事を読んでやりたかったやつです。 Setting up a new machine for Ruby development by David of 37signals $ git clone git@your-server:you/your... 続きを読む
時刻の扱いは難しい。タイムゾーンを跨ぐと格別に難しい。 Rails を使っていても難しさに変わりはない。むしろ時刻のやっかいな部分を隠蔽してくれるが故に余計にややこしくなることもある。 config.time_zone と config.active_support.default_timezone Rails... 続きを読む
Copyright © 2012 GitHub Inc. All slide content and descriptions are owned by their creators. F.A.Q. Terms of Service Privacy Policy 続きを読む