サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
都知事選
illuminatedcomputing.com
Seems like every few months I need to build a Rails form that sets a many-to-many relationship with checkboxes. This happens when the form lets you edit model A, which has zero or more Bs, and there are few enough Bs that it makes sense to present them all as a list of checkboxes. There are lots of blog posts around the Internet that tell you how to do this with elaborate ActiveRecord callbacks an
このページを最初にブックマークしてみませんか?
『illuminatedcomputing.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く