initial commit
This commit is contained in:
9
app/views/guesses/index.html.erb
Normal file
9
app/views/guesses/index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="puzhome">
|
||||
|
||||
<h1> Najnoviji uspjesi</h1>
|
||||
|
||||
<% @guesses.each do |guess| %>
|
||||
<div><%= guess.created_at_formatted %><h3> <%= link_to( guess.username, users_url + "?username=" + guess.username.to_s) %>: <%= guess.definition %></h3> </div>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
4
app/views/guesses/index.json.jbuilder
Normal file
4
app/views/guesses/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.array!(@guesses) do |guess|
|
||||
json.extract! guess, :username, :definition
|
||||
json.url guess_url(guess, format: :json)
|
||||
end
|
||||
1
app/views/guesses/show.html.erb
Normal file
1
app/views/guesses/show.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
Nothing to see here - move along!
|
||||
3
app/views/guesses/show.json.jbuilder
Normal file
3
app/views/guesses/show.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.extract! guess, :username, :definition
|
||||
|
||||
|
||||
Reference in New Issue
Block a user