есть следующий action в контролере
class AppointmentsController < ApplicationController
def index
@appointment = Appointment.new
@appointments = Appointment.order('app_time ASC')
end
end
и вьюха
= form_with @appointment do |f|
= f.text_field :title
= f.text_field :app_time
= f.submit 'Make appointment'
form_for
, возможно прочитали о нём в старых материалах и решили, что это то же самое. Отвыкайте :) – user181100 24 мая '18 в 10:01