2

次の移行を含むテーブル「通知」があります。

class CreateNotifications < ActiveRecord::Migration
  def change
    create_table :notifications do |t|
      t.integer :id
      t.string :from
      t.string :to
      t.string :subject
      t.text :content
      t.string :interval_type
      t.integer :interval
      t.datetime :begin
      t.datetime :end
      t.timestamps
    end
  end
end

問題は、myapplication/notifications/new に移動すると、「Content」フィールドにテキスト領域ではなく、input type="text" が表示されることです。

解決した

4

1 に答える 1