ca5
1/26/2015 - 7:21 AM

書き方

書き方

actions :アクション名
default_action :デフォルトアクション名

attribute :要素名, :kind_of=>型(StringとかInteger配列とか), ...(その他オプション)

#その他オプション
:name_attribute => true #先頭のattribute
:default => デフォルト値
:require => true #必須項目

""
providersの呼び出し方
(cook-book名)_(provider名) name_attribute do
  その他のattribute1 値1
  その他のattribute2 値2
  :

""