NetBeansコードテンプレート

・カラムの追加(マイグレーションファイルで使う)
mcol +tabキー

add_column :table, :column, :string

・入力文字の妥当性チェック(モデルクラスで使う)
vp +tabキー

validates_presence_of :attribute

※↓こんな感じで
validates_presence_of :title, :body

・link_to
liai +tabキー

<%= link_to "link text...", :action => “edit”, :id => @item %>


Tags:

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes