Validation error messages don't work

22 views
Skip to first unread message

swift-au

unread,
Jan 11, 2010, 5:57:03 AM1/11/10
to web-app-theme-generator
Hi all,

Even after applying the ActionView::Base.field_error_proc trick,
validation error messages are not displayed on themed forms.

I'm using v0.5.1 of web-app-theme and Rails 2.3.5.

To reproduce, follow the steps in the GravityBlast 2 minute tutorial
and add some simple validation to the Album model (e.g.
validates_presence_of :name). Leave the name blank and submit the
form, and it's simply redisplayed without any error messages.

Cheers...
Roger

Andrea Franz

unread,
Jan 11, 2010, 6:23:36 AM1/11/10
to web-app-the...@googlegroups.com
On Mon, Jan 11, 2010 at 11:57 AM, swift-au <ro...@at.com.au> wrote:
> Hi all,
>
> Even after applying the ActionView::Base.field_error_proc trick,
> validation error messages are not displayed on themed forms.

Hi Roger, there was a bug in the label name generation. If you update
the gem, the version 0.5.2 should fix that bug.
Let me know if it works!
thank you

> I'm using v0.5.1 of web-app-theme and Rails 2.3.5.
>
> To reproduce, follow the steps in the GravityBlast 2 minute tutorial
> and add some simple validation to the Album model (e.g.
> validates_presence_of :name). Leave the name blank and submit the
> form, and it's simply redisplayed without any error messages.
>
> Cheers...
> Roger
>

--
Andrea Franz
http://gravityblast.com

swift-au

unread,
Jan 11, 2010, 9:06:47 PM1/11/10
to web-app-theme-generator
Hi Andrea,

That does indeed fix it, along with fields with underscores in their
name. Many thanks!

Cheers...
Roger

Reply all
Reply to author
Forward
0 new messages