Skip to content
This repository was archived by the owner on Nov 17, 2018. It is now read-only.

Commit 9152e51

Browse files
committed
Merge branch 'master' of http://github.com/splitwise/api-example
2 parents 5a84489 + 01409b8 commit 9152e51

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/controllers/user_controller.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,32 +44,32 @@ def welcome
4444
end
4545

4646
def balance_over_time
47-
@title = "Api Example \u00B7 Balance"
47+
@title = "Balance"
4848
@data = JSON.unparse(current_user.get_balance_over_time)
4949
end
5050

5151
def balances_over_time_with_friends
52-
@title = "Api Example \u00B7 Balance with friends"
52+
@title = "Balance with friends"
5353
@data = JSON.unparse(current_user.get_balances_over_time_with_friends)
5454
end
5555

5656
def expenses_over_time
57-
@title = "Api Example \u00B7 Expenses"
57+
@title = "Expenses"
5858
@data = JSON.unparse(current_user.get_expenses_over_time_cumulative)
5959
end
6060

6161
def expenses_by_category
62-
@title = "Api Example \u00B7 Expenses by category"
62+
@title = "Expenses by category"
6363
@data = JSON.unparse(current_user.get_expenses_by_category)
6464
end
6565

6666
def expenses_by_category_over_time
67-
@title = "Api Example \u00B7 Category history"
67+
@title = "Category history"
6868
@data = JSON.unparse(current_user.get_expenses_by_category_over_time_cumulative)
6969
end
7070

7171
def expenses_matching
72-
@title = "Api Example \u00B7 Search an expense"
72+
@title = "Search an expense"
7373
@data = JSON.unparse(current_user.get_expenses_matching_cumulative(params[:query]))
7474
end
7575

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title><%= @title %></title>
4+
<title>Api Example<%= " \u00B7 #{@title}" if @title %></title>
55
<link rel='shortcut icon' href='http://localhost:3000/favicon.ico'/>
66
<%= stylesheet_link_tag "application", :media => "all" %>
77
<%= javascript_include_tag "application" %>

0 commit comments

Comments
 (0)