From 7f022bf8ebbaa4c6949fda80ab7246680a933494 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Wed, 21 Nov 2007 16:34:35 -0800 Subject: [PATCH] Add title to the rentable listing Signed-off-by: Ira W. Snyder --- app/views/rentable/list.rhtml | 6 +++++- db/development.sqlite3 | Bin 7168 -> 7168 bytes 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/rentable/list.rhtml b/app/views/rentable/list.rhtml index 74c1cbc..0fe063d 100644 --- a/app/views/rentable/list.rhtml +++ b/app/views/rentable/list.rhtml @@ -2,13 +2,17 @@ + <% for column in Rentable.content_columns %> <% end %> - + <% for rentable in @rentables %> + <% for column in Rentable.content_columns %> <% end %> diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 3d63cdb243ac1a3e958fd61d637dffb4e22fff51..7a033ca35baa6394dd29b336b54ec58ab1376363 100644 GIT binary patch delta 296 zcmZp$Xt0(!_iQ$GrTKjMO3pQ=oyRjQpaE@?2mkxP%E%A_gR( z$eHGspO?xIl$xU8Qk0l3$HdOS$gjw#$du-ipQm1;;GLIW4wuc(Q(}b3Yce9s^Mxs- T54uW>IQ#Nq$i^kR6tplA6Cr Gf&~B=o-G6b -- 2.25.1
Title<%= column.human_name %>
+ <%=h Video.find(:first, :conditions => "rentable_id='#{rentable.id}'").title.to_s if Video.find(:first, :conditions => "rentable_id='#{rentable.id}'") %> + <%=h rentable.send(column.name) %>