rails db:create db:migraterails s
- visit
/thing_with_rails_forms/new - Give your thing a name and an image
- visit
/thing_with_react_forms/new - Give your thing a name and an image
- The model files (
has_one_attached :image) - The controller files (permit the
:imageparam) /app/views/thing_with_rails_forms/_form.html.erb(<%= form.file_field %>)/app/views/thing_with_rails_forms/show.html.erb(<%= image_tag(@thing_with_rails_form.image) %>)/app/views/thing_with_react_forms/index.html.erb(<%= react_component 'FormForThingWithReactForm' %>)/app/views/thing_with_react_forms/show.html.erb(<%= react_component 'ShowThingWithReactForm' %>)/app/javascript/bundles/ThingWithReactForm/*(all of it)