Skip to content

Commit

Permalink
admin/index
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 25, 2010
1 parent b74ab31 commit f4a5ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions depot/app/controllers/admin_controller.rb
Expand Up @@ -16,6 +16,7 @@ def logout
end

def index
@total_orders = Order.count
end

end
4 changes: 4 additions & 0 deletions depot/app/views/admin/index.html.erb
@@ -1,2 +1,6 @@
<h1>Admin#index</h1>
<p>Find me in app/views/admin/index.html.erb</p>

<p>現在の時刻は、 <%=h Time.now %> です。

<p>We have <%= pluralize(@total_orders, "order") %>.

0 comments on commit f4a5ca6

Please sign in to comment.