- <%= link_to "Add #{@default_type.display_name}", new_engine_aware_path((@default_type),
"#{@default_type.param_key}[connect_to_page_id]" => params[:connect_to_page_id],
"#{@default_type.param_key}[connect_to_container]" => params[:connect_to_container]
),
:class=>"btn btn-small btn-primary" %>
- Or choose another content types to add:
<% @content_types.each_with_index do |type, i| %>
- <%= link_to h(type.display_name), new_engine_aware_path(type,
"#{type.param_key}[connect_to_page_id]" => params[:connect_to_page_id],
"#{type.param_key}[connect_to_container]" => params[:connect_to_container]
), :target=> "_top" %>
<% end %>