:-8 Okay, I got it. Sorry for the noise but in case anyone is
curious, I changed the form_ui on the belongs_to column:
config.columns[:category].form_ui = :select
This enabled me to create the belongs_to association on a new records,
whereas with "form_ui = :crud" I would get an error when I tried to
add the association. Looking at what crud does, it all makes sense
but I don't need crud here.
http://activescaffold.com/docs/api-column
cheers,
Tyler
On Jan 26, 11:59 am, Tyler <[email protected]> wrote:
> Hey, apologies if this is silly but...
>
> is there a way to get around having to save new records before adding
> associations? I get sqlite errors when I click "Add Existing" for the
> belongs_to association on a record. Note there's no error if the
> record has already been saved. But this is a problem because I want
> to have validation rules for creating new records, and having to save
> the record before adding associations creates friction.
>
> thanks!
> Tyler
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---