<%= title("#{h @controller.controller_name.singularize.humanize} - #{h @table.name}") %>
<% for col in @table.class.columns %> <% end %> <%= post_attributes_show %>
Table
<%=h @table.send(col.name) %>
<%= button_to "Edit", :action => :edit, :id => @table %><%= button_to "Delete", { :action => :destroy, :id => @table }, :confirm => 'Are you sure?' %><%= button_to "List all", :action => :list %>
Render
Select datasource to render with: <% form_tag :action => :render_table, :id => @table do %> <%= datasource_fields {|ds| @table.applyable?(ds) and ds.table.column_names.include?("date")}%> Text: <%= radio_button_tag 'type','text',true %> CSV: <%= radio_button_tag 'type','csv' %> <%= submit_tag "Render"%> <% end %>