2008-07-16から1日間の記事一覧

確認ダイアログを出すボタン

button_toの第三引数に:confirmを指定する。 <%= button_to '削除', {:controller => 'comment', :action => 'delete', :id => c.id, :topic_id => @topic.id}, :confirm => 'コメントを削除してよろしいですか?' %>