Title | <% for column in Rentable.content_columns %><%= column.human_name %> | <% end %>|||
---|---|---|---|---|
<%=h Video.find(:first, :conditions => "rentable_id='#{rentable.id}'").title.to_s if Video.find(:first, :conditions => "rentable_id='#{rentable.id}'") %> | <% for column in Rentable.content_columns %><%=h rentable.send(column.name) %> | <% end %><%= link_to 'Show', :action => 'show', :id => rentable %> | <%= link_to 'Edit', :action => 'edit', :id => rentable %> | <%= link_to 'Destroy', { :action => 'destroy', :id => rentable }, :confirm => 'Are you sure?', :method => :post %> |