Commit 1a490c5 1 parent d23947c commit 1a490c5 Copy full SHA for 1a490c5
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ def book_title book
9
9
"Book #{ book . name . titleize } "
10
10
end
11
11
end
12
+
13
+ def strip_book_title book
14
+ book . name . sub ( /^book\s +/i , '' ) . titleize
15
+ end
12
16
13
17
def case_title kase
14
18
if kase . case_name . downcase . starts_with? ( 'case' )
Original file line number Diff line number Diff line change 2
2
<% puts "Rendering row for book #{ book . id } updated at #{ book . updated_at } at #{ Time . now } " %>
3
3
<!--<%= "Rendering row for book #{ book . id } updated at #{ book . updated_at } at #{ Time . now } " %> -->
4
4
< td > <%= book . id %> </ td >
5
- < td > <%= link_to book_title ( book ) , book_path ( book ) %> </ td >
5
+ < td > <%= link_to strip_book_title ( book ) , book_path ( book ) %> </ td >
6
6
< td > <%= book . teams . pluck ( :name ) . join ( ',' ) %> </ td >
7
7
< td > <%= book . scorer . name %> </ td >
8
8
< td > <%= book . selection_strategy . name %> </ td >
You can’t perform that action at this time.
0 commit comments