Image Input

A Rails helper for a simple, clean image input for use with Active Storage.

<%= form_with(model: do |form| %>
  <%= image_input form, :profile_picture %>
<% end %>

NOTE: The styles of this project are constructed using Tailwind CSS.


Add to your Gemfile:

gem 'image_input'
bundle install
yarn add @mainkatz/image-input


To develop this locally you can update your Gemfile:

gem 'image_input', path: 'PATH_TO_PROJECT'

In this project run:

yarn link

In your app project run:

yarn link @mainkatz/image-input

To auto-recompile this project, run:

yarn run dev