validation on auto_actions_for :xxxxx

17 views
Skip to first unread message

Drammy

unread,
Dec 11, 2011, 4:55:20 PM12/11/11
to Hobo Users
Hi all,

I have a custom validation that is working by preventing records from
being added to the database when the test fails however I don't get an
error message on the page as I am using auto_actions_for to create
records from another page.

No matter whether the validate method passes or fails it always
navigates to a summary page, however if the validate method passes I
get a "the record has been added successfully" message.

Anyone come across this before?

Bryan Larsen

unread,
Dec 12, 2011, 9:25:20 AM12/12/11
to hobo...@googlegroups.com
No, that's not a common problem. Have you customized your
controller action, and if so, can you post it?

Bryan

> --
> You received this message because you are subscribed to the Google Groups "Hobo Users" group.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
>

kevinpfromnm

unread,
Dec 12, 2011, 11:58:32 AM12/12/11
to hobo...@googlegroups.com
how are you running the validation and are you adding errors to the model before returning?

Matt Jones

unread,
Dec 12, 2011, 12:15:49 PM12/12/11
to hobo...@googlegroups.com

Just to clarify: this is a case where you've got:

auto_actions_for :something, :create

in your controller and an embedded form? Sounds like this bug:

https://hobo.lighthouseapp.com/projects/8324/tickets/912

which still hasn't been sorted out...

--Matt Jones

Bryan Larsen

unread,
Dec 13, 2011, 8:37:18 AM12/13/11
to hobo...@googlegroups.com

I know that bug #983 is a priority at Barquin, and it's in a related
area of the code, so we should probably fold #912 into it...

Bryan

owendall

unread,
Dec 13, 2011, 8:51:00 AM12/13/11
to hobo...@googlegroups.com
Sounds good , Bryan.

Sent from my iPhone

Drammy

unread,
Dec 19, 2011, 2:35:32 PM12/19/11
to Hobo Users
Apologies all, I've been away for a few days.

Is there any way I can assist? Do you still need some snippets of my
code or more detail on the situation?

Reply all
Reply to author
Forward
0 new messages