Browse Source

env_sample

main
pvincent 2 months ago
parent
commit
c86af8c805
  1. 23
      .env.sample
  2. 7
      app/views/scores/_score.html.erb

23
.env.sample

@ -1,20 +1,23 @@
# STATIC: restart server when changes!
#-------------------------------------
# RAILS_PORT=7500
# RAILS CONSTANTS
# ---------------
# restart required after change!
# RAILS_PORT=7500
# DATABASE_HOST=localhost # DATABASE_HOST=localhost
# DATABASE_NAME=easy-going-rails
# DATABASE_USER=$DATABASE_NAME
# DATABASE_PASSWORD=$DATABASE_NAME
# HOT CONSTANTS # HOT CONSTANTS
#--------------
# -------------
STIMULUS_DEBUG=false STIMULUS_DEBUG=false
LOG_ACTIVE_RECORD=false LOG_ACTIVE_RECORD=false
LOG_ACTION_VIEW=false LOG_ACTION_VIEW=false
# INTEGER=2
# STRING=
# with default value, type gets inferred from
# INTEGER=1
# STRING=anything
# BOOLEAN=true # BOOLEAN=true
# IDEA: optional nil ends with '?''
# with no default value (evaluated to nil), type must be defined expressively otherwise it reverts to a string type
# INTEGER=:integer
# BOOLEAN=:boolean
# STRING=

7
app/views/scores/_score.html.erb

@ -9,10 +9,9 @@
<td> <td>
<% if action_name != "show" %> <% if action_name != "show" %>
<%= link_to score do %><%=fa_icon :eye, style: :regular, size: '4x', class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' %>Show Score<% end %>
<%= link_to "Edit this score", edit_score_path(score), class: "rounded-xl border border-yellow-300 py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
<%= link_to "Edit this score", edit_score_path(score), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
<%= button_to "Destroy this score", score_path(score), method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>
<%= link_to score, 'data-tooltip': 'show',class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :eye %><% end %>
<%= link_to edit_score_path(score), 'data-tooltip': 'edit', class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :edit %><% end %>
<%= link_to score, 'data-tooltip': 'delete', data:{ turbo_method: :delete}, class: 'border rounded-lg border-purple-800 m-1 p-2 bg-white' do %><%=fa_icon :trash %><% end %>
<hr class="mt-6"> <hr class="mt-6">
<% end %> <% end %>
</td> </td>

Loading…
Cancel
Save