app/helpers/logs_helper.rb in moneyrail-0.0.2 vs app/helpers/logs_helper.rb in moneyrail-0.1.0

- old
+ new

@@ -1,6 +1,14 @@ module LogsHelper + def link_to_edit_or_show(str, month) + if @mode == :edit + link_to_edit_logs str, month + else + link_to_show_logs str, month + end + end + def cell(value) if @mode == :edit "<input type='text' value='#{h value}' />" else "<div>#{h value}</div>"