Customizing Forms
Forms are an important part of any web application because they are how the user interacts with the app. Creating forms that are easy to use is simple to do with Ruby on Rails when you use the built-in tools and some other popular tools built for Rails.
6 videos • 0 quizzes • 2 code challenges
-
Play
Preview
Getting the Latest Changes
8 minutes 40 seconds
-
Play
Preview
Installing simple_form
8 minutes 32 seconds
-
Play
Preview
Creating Relationships
11 minutes 48 seconds
-
Code Challenge
Preview
Code Challenge: Model Associations
2 objectives
-
Play
Preview
Adding a Dropdown
5 minutes 18 seconds
-
Play
Preview
Navigation Links
9 minutes 59 seconds
-
Play
Preview
Adding Styling
11 minutes 38 seconds
-
Code Challenge
Preview
Code Challenge: Check Sign in Status
1 objective
Sort users in the dropdown
Try using the order method on the model finders to order the users in the dropdown by name.
Make yourself the default
The collection select will preselect the correct option if there is already a value defined. Update the code so that the dropdown always defaults to the current user.