This section gives a comprehensive analysis on how to work with forms in a Rails application. This includes the various forms Rails provides, along with how to build JavaScript based dynamic forms.
There are two main ways to build forms in Rails, in this guide we're going to walk through the key differences between using the form_for and form_tag form components in Rails.
Nested form components are common features in many applications. However Rails, by itself, doesn't handle these type of forms well since Rails forms require a refresh to make any changes to the form, such as adding a new form input. That's where JavaScript/jQuery come in. In this guide we'll walk through how to utilize the Cocoon gem in order to have dynamic forms that can create and remove inputs on a form.
This guide focuses on how to integrate growl notifications in a Rails 5 application. Specifically, we'll walk through how to install and configure the `Gritter` gem so our application can have JavaScript based alerts that slide in and fade away.
This guide walks through how to refactor our current alert system so that it utilizes a view helper method that can be called from the layouts and forms.
devCamp does not support ancient browsers.
Install a modern version for best experience.