You can use before/after_create_save on controller to set this value, look
at github for that

2009/6/2 rs <[email protected]>

>
> This seems like it should be easy to do, but after scouring the docs
> and Google, I can't seem to find a solution.
>
> I'd like to just create a link to an activescaffold controller,
> passing a parent id param, then use activescaffold to view/edit/update
> all child records, forcing the id to be the parent id.  I don't want
> the user to be able to change that parent id.
>
> I can pass the param fine (location_id) and the scaffold opens with
> all children of that location, but when I try to add a record, I can't
> add one without including the location_id in config.columns.  But if I
> do include that column, the user can edit it, which I don't want to
> allow.
>
> Any help would be very much appreciated.
> Thanks
>
> >
>


-- 
Atenciosamente,

Gabriel Sobrinho
+55 31 8775 8378

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