Hi Mike,
that call is rendering an embedded activescaffold.
I got the impression that you would like to have "normal" subform.
And that code you will find in _form.html.erb.
<% elsif renders_as == :subform and !override_form_field?(column) -%>
<li class="sub-form <%=
active_scaffold_config_for(column.association.klass).subform.layout %>-
sub-form <%= column.css_class unless column.css_class.nil? ||
column.css_class.is_a?(Proc) %>" id="<%= sub_form_id(:association =>
column.name) %>">
<%=raw render :partial => form_partial_for_column(column,
renders_as), :locals => { :column => column } -%>
</li>
--
Volker
On Mar 28, 5:43 am, Mike Blyth <[email protected]> wrote:
> Sorry, but I'm not clear on what you mean. Where is the code
> activescaffold calls? I tried using
>
> <%= render :active_scaffold => "family_contacts", :constraints =>
> { :family_id => @record.id } %>
>
> as you suggested to Jeff Surrett in a situation that seems to be what
> I'm looking for, but it gives an error about not having the secret
> token for signed cookies, so something is wrong.
>
> Thanks.
>
> --Mike
>
> On Mar 25, 3:23 am, vhochstein <[email protected]> wrote:
>
> > Hi,
>
> > just call the same code as activescaffold does.
>
> > _form.html.erb view is responsible for rendering all attributes.
> > Depending on the type of the attribute it will be rendered, in case of
> > a subform it will render it either using horizontal or vertical
> > layout.
>
> > --
> > volker
--
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.