Relative Content

Tag Archive for ruby-on-railsrubyhotwire-rails

How to create a dynamic user form with Devise and Hotwire

I have devise installed as authentication system in my Rails 7 app. I want to be able to create dynamic forms for organization and individual user types using hotwire. That is, when I click on individual option, a number of form fields should be displayed while others are hidden. I should be able to do this both on new and edit registration pages.