Commit 5a9c12b3 authored by Jasmine Principe's avatar Jasmine Principe

deleted trash sa pages

parent c172c99b
<<<<<<< HEAD
<h1><center><%= @candidate.full_name%></center></h1> <h1><center><%= @candidate.full_name%></center></h1>
<center><%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%> <center><%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%></center> <%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%></center>
=======
<% provide(:candidate, "active") %> <% provide(:candidate, "active") %>
<% provide(:title, "#{@candidate.full_name}" ) %> <% provide(:title, "#{@candidate.full_name}" ) %>
...@@ -10,7 +9,6 @@ ...@@ -10,7 +9,6 @@
<%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%> <%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<br> <br>
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%> <%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<br> <br>
<h3>Position: <%= @candidate.position.name %></h3> <h3>Position: <%= @candidate.position.name %></h3>
<% <%
......
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
# if you're sharing your code publicly. # if you're sharing your code publicly.
development: development:
admin_name: admin
admin_email: user@example.com
admin_password: password
email_provider_username: <%= ENV["GMAIL_USERNAME"] %>
email_provider_password: <%= ENV["GMAIL_PASSWORD"] %>
domain_name: example.com
secret_key_base: a120a184be8ba8273b612eff989817990858da2d03aa1067d95b199fa1fcd284a96896274307d0b1f17ef5570ce8a18de50bacc4d80f06dd77f995db00215189 secret_key_base: a120a184be8ba8273b612eff989817990858da2d03aa1067d95b199fa1fcd284a96896274307d0b1f17ef5570ce8a18de50bacc4d80f06dd77f995db00215189
test: test:
...@@ -19,4 +25,10 @@ test: ...@@ -19,4 +25,10 @@ test:
# Do not keep production secrets in the repository, # Do not keep production secrets in the repository,
# instead read values from the environment. # instead read values from the environment.
production: production:
admin_name: <%= ENV["ADMIN_NAME"] %>
admin_email: <%= ENV["ADMIN_EMAIL"] %>
admin_password: <%= ENV["ADMIN_PASSWORD"] %>
email_provider_username: <%= ENV["GMAIL_USERNAME"] %>
email_provider_password: <%= ENV["GMAIL_PASSWORD"] %>
domain_name: <%= ENV["DOMAIN_NAME"] %>
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
...@@ -5,3 +5,5 @@ ...@@ -5,3 +5,5 @@
# #
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first) # Character.create(name: 'Luke', movie: movies.first)
user = CreateAdminService.new.call
puts 'CREATED ADMIN USER: ' << user.email
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment