initial commit

This commit is contained in:
Senad Uka
2013-12-09 03:23:49 +01:00
parent 9582c13e0c
commit e8751fa215
204 changed files with 6675 additions and 41 deletions

View File

@@ -0,0 +1,11 @@
<div class="puzhome">
<h1> Najnovije pobjede</h1>
<% i = 1 %>
<% @solutions.each do |solution| %>
<div><%=i%>. <%= solution.created_at_formatted %> <%= link_to( solution.username, users_url + "?username=" + solution.username) %>: <%= solution.number %> u vremenu <%=solution.time%></div>
<% i += 1%>
<% end %>
</div>

View File

@@ -0,0 +1,4 @@
json.array!(@solutions) do |solution|
json.extract! solution, :number, :time, :username
json.url solution_url(solution, format: :json)
end

View File

@@ -0,0 +1 @@
json.extract! @solution, :number, :time, :username, :created_at, :updated_at