noranukoのネットワーク管理メモ: ruby/rails
よくあるフォームの中に、県をプルダウンから選ぶと、その県の市町村が表示される、というようなものがある。 これを、railsで再現する。 1.viewの編集<%= select :record, :pref,["北海道","青森","岩手","山形"] %><%= select :record, :city,["県を選んでください"] %><%= observe_field(:record_pref, :update => :record_city, :on => 'change', &...
http://noranuko.air-nifty.com/system/rubyrails/index.html
http://b.hatena.ne.jp/entry/http://noranuko.air-nifty.com/system/rubyrails/index.html