サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
dev.mikamai.com
Adding subdomains to a Rails application is an easy task today, but things can get a little trickier when testing is involved. For starters, you may only need to handle subdomains at the routing level, which is quite easy. But after the easy step some troubles may be awaiting for you. In our example we want to add an “admin” subdomain to a brand new app. We edit the file routes.rb as follows and w
For a very long time the only way to extend Ruby with native estensions has been using C. I don’t have the numbers with me, but I guess C is not the first choice for Ruby programmers when they have to pick up a secondary/complentary language. So I started investigating the possibility of writing them in other languages, taking advantage of the favorable moment: in the past 3-4 years we had an expl
Rails 4.1 has recently been released and it came out with the usual bag of goodies, one of the most notable being ActiveRecord enums, a handy new feature that simplifies the creation and use of state attributes for your models. Consider the following use case: our app needs users, and each of them has a state that can be registered, active or blocked. How would have we addressed the task in the pa
このページを最初にブックマークしてみませんか?
『dev.mikamai.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く