Sorry, this entry is only available in 日本語.
Tag Archives: Rails
Rails: How to generate basic option tags
I’ve compiled a guide on generating options
tags using options_for_select
.
Environment
- Ruby 2.2.3
- Rails 4.2.5
(日本語) Rails: クラス名が ActiveRecord::AttributeMethods 内のモジュールと同じ場合
Rails: Realize nl2br in PHP
Here’s the code to realise nl2br
of PHP in Rails.
Environment
(Unless Rails changes considerably), it can be used in most versions.
- Rails 4.2.5
- Ruby 2.0.0