2010/9/16 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> You can try removing create action from
> model_2 controller if you create model_2 records as a subform inside a model_1
> form.

I don't create model_2 in a subform, but by directly clinking on
"Create Model-2" in a member of Model-1 collection in Model-1 list.
Note that model-1 has_one model-2, so creating a model-2 for a model-1
(in model-1 list view) is just posible in case such model-1 entry has
no model-2 record yet.

If I remove "create" action in model-2 controller then the above
wouldn't work. Tested.


> Or you can remove link with config.create.link = false, although typing
> the url you will get the model_2 create form.

This is exactly what I was looking for :)

Thanks a lot.



-- 
Iñaki Baz Castillo
<[email protected]>

-- 
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.

Reply via email to