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
Inline errors don't work with justinfrench_formtastic when using the form.inputs or form.errors_on methods. Stepping through a trace it looks as if the regular form helper is called when there is an error. The piece of the code in formtastic that handles the input method is never ran. You can show this by making your form a partial with 1 step in wizardly. When the partial is shown outside of wizardly the inline errors are displayed, but inside wizardly they are not. The errors object is just fine, if you add it to the top of the form you will see any validation errors.
The text was updated successfully, but these errors were encountered:
Dumb dumb dumb. Wizardly demo app refers to forms like this:
<% form_for :user_signup, :url=>{:action=>:account} do |f| %>
Which works great for form_helper, but not for formtastic. Formtastic passes through anything it doesn't understand to form_helper, so the form doesn't break but any Formtastic features are quietly turned off.
Rename your object as below and everything works nicely:
<% form_for @user_signup, :url=>{:action=>:account} do |f| %>
Not really a wizardly problem. At least this might save some other noob a few hours.
Inline errors don't work with justinfrench_formtastic when using the form.inputs or form.errors_on methods. Stepping through a trace it looks as if the regular form helper is called when there is an error. The piece of the code in formtastic that handles the input method is never ran. You can show this by making your form a partial with 1 step in wizardly. When the partial is shown outside of wizardly the inline errors are displayed, but inside wizardly they are not. The errors object is just fine, if you add it to the top of the form you will see any validation errors.
The text was updated successfully, but these errors were encountered: