You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That should work fine unless you are populating the form with .from_params or .from_model as the values will be overwritten by the values from the params or model.
I typically use .new in the new action of a controller and .from_model in the edit action. Then use .from_params in both the create and update actions as you want to populate the form from the values entered by the user.
Hey
I'm trying to set default values in a form the virtus way. But it looks like this is not working. Am I overlooking something?
The text was updated successfully, but these errors were encountered: