From 2a0ff221db0fdf0b06f6164b7ab9f0f6d3f20ed3 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Wed, 12 Dec 2012 11:45:15 -0500 Subject: [PATCH] add "How come my form is blank?" to FAQ --- doc/manual/FAQ.markdown | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/manual/FAQ.markdown b/doc/manual/FAQ.markdown index 7afc9f5bc..5460a2982 100644 --- a/doc/manual/FAQ.markdown +++ b/doc/manual/FAQ.markdown @@ -348,4 +348,21 @@ Hobo controllers contain methods that ensure that those two variables always hol @foos = Foo.all self.this = Foo.all - @foos = self.this = Foo.all \ No newline at end of file + @foos = self.this = Foo.all + +# How come my form is blank? + +The most likely cause of forms not displaying is due to permission errors. Read [The Permission System](http://cookbook.hobocentral.net/manual/permissions) and check your `attr_accessible` declarations. + +If the entire form is missing you can add alternate content through an else clause: + +
+ No permission to display form + +It's also possible that the form is displaying but none of the fields are. You can force the display of the fields with + + + + + +You probably don't want that in production code, though! \ No newline at end of file