<%= title("#{h @controller.controller_name.singularize.humanize} - #{h @chart.name}") %>
<% for col in @chart.class.columns %> <% end %> <%= post_attributes_show %>
Chart
<%=h @chart.send(col.name) %>
<%= button_to "Edit", :action => :edit, :id => @chart %><%= button_to "Delete", { :action => :destroy, :id => @chart }, :confirm => 'Are you sure?' %><%= button_to "List all", :action => :list %>
Render
Select datasource to render with: <% form_tag :action => :render_chart, :id => @chart do %> <%= select_tag('table', options_for_select(Prisma::Database.data_sources.select {|s| @chart.applyable?(s) }.map {|s| [s.name,s.table_name] }.sort{|x,y| (x[0] or "") <=> (y[0] or "")}), {:include_blank => true}) %> <%= submit_tag "Render"%> <% end %>