Open yuyanegishi opened 5 years ago
Webサービスのサポートなしの場合、Personリストを表示するためのデータを収集するアクションは次のようになる
def index @people = Person.all end
上記アクションは暗黙的にすべてのフォーマットに対応しますが、フォーマットもホワイトリストに入れることができる
def index @people = Person.all respond_to :html, :js end
Webサービスのサポートなしの場合、Personリストを表示するためのデータを収集するアクションは次のようになる
上記アクションは暗黙的にすべてのフォーマットに対応しますが、フォーマットもホワイトリストに入れることができる