sthapit

Joined

510 Experience
5 Lessons Completed
0 Questions Solved

Activity

I followed this episode and I tried doing this

  typed_store :meta, coder: ActiveRecord::TypedStore::IdentityCoder do |s|
    s.string :requested_topics
    s.text :instructions
  end

s.string works but s.text gives me the error key not found: :text even though its listed here

[:string, :text, :integer, :float, :time, :datetime, :date, :boolean, :decimal, :any].each do |type|

does anyone know how to use a text field with typed_store?

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.