Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evilla_gomez_guian_principe
final_project
Commits
5a9c12b3
Commit
5a9c12b3
authored
Jul 20, 2016
by
Jasmine Principe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleted trash sa pages
parent
c172c99b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
show.html.erb
Halalan/app/views/admin/candidates/show.html.erb
+1
-3
secrets.yml
Halalan/config/secrets.yml
+12
-0
seeds.rb
Halalan/db/seeds.rb
+2
-0
No files found.
Halalan/app/views/admin/candidates/show.html.erb
View file @
5a9c12b3
<
<<<<<<
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>
<%
<%
...
...
Halalan/config/secrets.yml
View file @
5a9c12b3
...
@@ -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"] %>
Halalan/db/seeds.rb
View file @
5a9c12b3
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment