> Please put the code you are used in that page to dispay institution and AS
> form.
Sergio,
Here is the (slightly condensed for clarity) view in which Institution
and its children are rendered. @record is an instance of an
Institution. Many thanks in advance for any advice.
<div class='active-scaffold-header'>
<h1><%= @record.name %></h1>
</div>
<div id='actions'>
<p><%= link_to "Edit this institution's profile",
edit_admin_institution_url %>
</div>
<% sections = ['institution_degrees', 'diplomas', 'accreditations',
'financial_aids', 'institution_program_types', 'partnerships',
'campuses'] %>
<ul id="institution-tabs" class="subsection_tabs">
<% sections.each do |section| %>
<li class="tab"><a href="#<%= section %>"><%= tab_label(section)
%></a></li>
<% end %>
</ul>
<% sections.each do |section| %>
<div id="<%= section %>">
<% con_name = ['diplomas'].include?
(section) ? :institutions : :institution %>
<%= render :active_scaffold => "admin/#{section}", :label =>
tab_label(section), :constraints => { con_name => @record.id } %>
</div>
<% end %>
--
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.