def create
      activity = activity_for_note(note: create_note)

      Notification.create_for_activity(activity.model)

      flash[:notice] = t("socializer.model.create", model: "Note")

      respond_to do |format|
        format.html { redirect_to activities_path }
        format.js do
          render :create, locals: { activity: activity, note: Note.new,
                                    current_id: nil, title: "Activity stream" }
        end
      end
    end
def create
      activity = activity_for_note(note: create_note)

      Notification.create_for_activity(activity.model)

      flash[:notice] = t("socializer.model.create", model: "Note")

      respond_to do |format|
        format.html { redirect_to activities_path }
        format.js do
          render :create, locals: { activity: activity, note: Note.new,
                                    current_id: nil, title: "Activity stream" }
        end
      end
    end
POST /notes