straight-mechanic-78430
10/22/2022, 10:32 AMlemon-wall-20836
10/22/2022, 11:31 AMstraight-mechanic-78430
10/25/2022, 9:03 AMlemon-wall-20836
10/25/2022, 9:03 AMlemon-wall-20836
10/25/2022, 9:03 AMlemon-wall-20836
10/25/2022, 9:04 AMGemfile
ruby
# Minimal authorization through OO design and pure Ruby classes
gem "pundit"
# Active Storage makes it simple to upload and reference files
gem "activestorage"
# High-level image processing wrapper for libvips and ImageMagick/GraphicsMagick
gem "image_processing"
# All sorts of useful information about every country packaged as convenient little country objects.
gem "countries"
# Create beautiful JavaScript charts with one line of Ruby
gem "chartkick"
lemon-wall-20836
10/25/2022, 9:05 AMstraight-mechanic-78430
10/25/2022, 9:07 AMmammoth-guitar-49791
10/25/2022, 10:33 AM#<struct ActiveRecord::Point x=0.0, y=0.0>
What data type would be appropriate here?mammoth-guitar-49791
10/25/2022, 10:50 AMruby
field :location_x, as: :text do |model|
model.location.x
end
field :location_y, as: :text do |model|
model.location.y
end
I'm using something like this and it shows up in the show view but not in the edit.quiet-winter-98496
10/25/2022, 11:02 AMlemon-wall-20836
10/25/2022, 11:03 AMlemon-wall-20836
10/25/2022, 11:03 AMlemon-wall-20836
10/25/2022, 11:05 AMruby
def location_x_something
location.x
end
def location_x_something=(value)
location.x = value
end
field :location_x_something, as: :text
lemon-wall-20836
10/25/2022, 11:07 AMmammoth-guitar-49791
10/25/2022, 11:09 AMmammoth-guitar-49791
10/25/2022, 11:09 AMlemon-wall-20836
10/25/2022, 11:10 AMmammoth-guitar-49791
10/25/2022, 11:11 AMlemon-wall-20836
10/25/2022, 11:19 AMquiet-winter-98496
10/25/2022, 11:27 AMstraight-mechanic-78430
10/25/2022, 4:39 PMstraight-mechanic-78430
10/25/2022, 4:40 PMripe-article-50191
10/25/2022, 5:41 PMUnpermitted parameters: :turbo_frame, :range, :locale. Context: { controller: Avo::HomeController, action: failed_to_load,
Any idea?ripe-article-50191
10/26/2022, 9:46 AMstraight-mechanic-78430
10/26/2022, 11:19 AMmelodic-army-3498
10/26/2022, 11:36 AMreadonly: true
on a field level only deactivates the field on the client side. I can still manipulate the request and persist changes to the field. I'd like to be able to control the permitted parameters in the controllers. Can I do this?quiet-winter-98496
10/26/2022, 4:00 PMlemon-wall-20836
10/26/2022, 9:26 PMlemon-wall-20836
10/26/2022, 9:29 PM