Skip to content

Commit 88b0469

Browse files
committed
Better error message for missing input type
Copy/Pasted from Formtastic :P
1 parent de68119 commit 88b0469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def input_class_by_trying(as)
157157
end
158158
end
159159
rescue NameError
160-
raise Formtastic::UnknownInputError
160+
raise Formtastic::UnknownInputError, "Unable to find input class for #{as}"
161161
end
162162

163163
# This method calls the block it's passed (in our case, the `f.inputs` block)

0 commit comments

Comments
 (0)