Sha256: 30f6f815bbcdf1be5fffd1873aa2904282664bdd363335ef3de6429eb23b9428
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
class AppointmentsController < ApplicationController def index @appointments = Appointment.all end def new @appointment = Appointment.new end def create @appointment = Appointment.new(params.require(:appointment).permit(:scheduled_at)) @appointment.save redirect_to root_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datetime_picker_input-4.0.0 | spec/dummy/app/controllers/appointments_controller.rb |