Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
      
  
  
  I’ve had a great time interviewing several interesting Rubysts and Railers on their new projects. I think you will like to hear what they have to say. My first guest was Joshua Timberman. He is a fervorous evangelist for the Chef project. Chef could be seen as a more modern Puppet, which by itself, already is a modern systems configuration manager. Chef is composed of several pieces, cookbooks and
00:48 deploy:assets:precompile 01 ~/.rvm/bin/rvm default do bundle exec rake assets:precompile 01 Webpacker is installed 🎉 🍰 01 Using /home/ubuntu/bravado/releases/20171124194740/config/webpacker.yml file for setting up webpack paths 01 Compiling… 01 Compilation failed: bundler: failed to load command: webpack (/home/ubuntu/bravado/shared/bundle/ruby/2.4.0/bin/webpack) Errno::ENOENT: No such fil
for brazilians: click here. I am very happy to see that my Rails 2.0 Screencast was very well received. More than 1,500 unique visitors watched it. The idea was to showcase Rails 2.0 very fast, showing what is possible to do in less than 30 min. Now, I will break that video down into its main pieces and create the very first full featured step-by-step tutorial around Rails 2.0. Like any other tuto
[Screencast] Real Thin Restful Controllers with Inherited Resources Update 10/01: José just released version 0.9.1 while I was uploading the video :-) José Valim is doing a great work in the soon to the released Rails 3.0. He surprised everybody with his Google Summer of Code project, rewriting the entire Generator code to use Thor and be more agnostic. Not only that he enhanced the ActionControll
Ruby on Rails 8.1.0 Class ActiveRecord::Associations::CollectionProxy < Relation activerecord/lib/active_record/associations/collection_proxy.rb Active Record Collection Proxy¶ ↑ Collection proxies in Active Record are middlemen between an association, and its target result set. For example, given class Blog < ActiveRecord::Base has_many :posts end blog = Blog.first The collection proxy returned b
require 'date' class AddBirthdayDateToUsers < ActiveRecord::Migration[5.1] def up add_column :users, :birthday_date, :date User.reset_column_information User.find_each do |u| birthday_date = Date.new(u.year, u.month, u.day) rescue nil u.update(birthday_date: birthday_date || User::UNKNOWN_BIRTHDAY) end change_column_null :users, :birthday_date, false end end 上記のようにマイグレーション実行時にアプリケーションで定義したActiveRe
      
  It’s not often I am able to write a patch that not only reduces memory usage, but increases speed as well. Usually I find myself trading memory for speed, so it’s a real treat when I can improve both in one patch. Today I want to talk about the patch I submitted to Ruby in this ticket. It decreases “after boot” memory usage of a Rails application by 4% and speeds up require by about 35%. When I wa
Maybe has a tendency to take over your codebase. This property is sometimes described as being viral. Uncertainty begets uncertainty. This sort of defeats the goal of using Maybe in the first place: give you confidence in the presence of most values. By slightly changing our approach to solving problems involving uncertainty, we can contain Maybe to those parts of our code that are truly optional.
      
  Our world is full of uncertainty. This uncertainty bleeds into our programs. A common way of dealing with this is null/nil. Unfortunately, this leads to even more uncertainty because this design means any value in our system could be null unless we’ve explicitly checked it’s presence. Constantly checking the presence of every value is a lot of work so we tend to only check the riskiest places and
      
  はじめに Railsのポリモーフィック(polymorphic、多態性)関連について、実装方法を説明している記事は見かけるのですが、実際これがどんなものでどんな時に便利なのかを説明している記事があまりなく、よくわからないで使っている人もいるようなので本記事を書きました。 実装方法そのものについては詳細には説明しませんので、Railsのポリモーフィック関連をどう書くのかを知らない方はまずは公式ドキュメントを読んでいただけると理解が早いかと思います。 ボリュームは少ないので、2分もかからないかと思います。 Rails Guides: 2.9 ポリモーフィック関連付け "どんなものか"について、先に結論 ポリモーフィックとはダックタイピングの一種であり、 別の言い方をするとGoFのデザインパターンで言うところの「プログラムは実装に対してではなく、インターフェースに対して行う(Program to
      
  Six years ago I shipped Sidekiq v0.5.0 and changed my life. I talked to some developers recently: “I had been working in Go for a while but I kept coming back to Ruby because Sidekiq makes everything so fast and easy to scale.” This is my recipe for success. Sell a product developers want because it makes their job so much easier. You don’t need a sales force when developers evangelize your produc
SVGs can be messy to develop with, often times being exported from a graphics application and being pasted into a document. However, they become much more delightful to work with when you have a readable file and clean markup. Optimizing SVG for the web When an SVG is exported from an application, it usually comes with code that’s unnecessary for rendering it on the web. For example, in Sketch, th
      
  リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く