diff options
-rw-r--r-- | app/views/agents/_agent.html.erb | 2 | ||||
-rw-r--r-- | app/views/application/_user_info.html.erb | 2 | ||||
-rw-r--r-- | config/database.yml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/agents/_agent.html.erb b/app/views/agents/_agent.html.erb index fda8bd0..aaeb9b0 100644 --- a/app/views/agents/_agent.html.erb +++ b/app/views/agents/_agent.html.erb @@ -1,7 +1,7 @@ <article class="agent" id="agent-<%= agent.to_param %>"> <header> <h1><%= link_to agent.name, agent_url(agent) %></h1> - <h2><%= link_to agent_url(agent) %></h1> + <h2><%= link_to agent_url(agent), agent_url(agent) %></h1> </head> <% if current_agent == agent %> <section class="agent-info"> diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index a1a42d2..122ec19 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -13,5 +13,5 @@ </section> <% content_for :debug do %> -<%= @current_user.avatar_url %> +<%= @current_user&.avatar_url %> <% end %> diff --git a/config/database.yml b/config/database.yml index 1912468..16ba3d2 100644 --- a/config/database.yml +++ b/config/database.yml @@ -24,7 +24,7 @@ default: &default # For details on connection pooling, see Rails configuration guide # https://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - host: <%= ENV.fetch("DATABASE_HOST", "db") %> + host: <%= ENV.fetch("DATABASE_HOST", "localhost") %> database: <%= ENV.fetch("POSTGRES_DB", "the_map_db") %> username: <%= ENV.fetch("POSTGRES_USER", "postgres") %> password: <%= ENV.fetch("POSTGRES_PASSWORD", "postgres") %> |