app/controllers/gaku/notes_controller.rb in gaku_frontend-0.1.1 vs app/controllers/gaku/notes_controller.rb in gaku_frontend-0.2.0

- old
+ new

@@ -1,12 +1,17 @@ module Gaku class NotesController < GakuController - #load_and_authorize_resource :note, class: Gaku::Note + # load_and_authorize_resource :note, class: Gaku::Note before_action :set_notable before_action :set_note, only: %i( edit update destroy show ) respond_to :js + + def index + @notes = @notable.notes + respond_with @notes + end def new @note = Note.new respond_with @note end