Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
VenJob
Commits
4e5fbc1a
Commit
4e5fbc1a
authored
Jan 02, 2020
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed link_to
parent
35f18768
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
app/mailers/application_mailer.rb
+1
-1
app/views/users/show.html.erb
+2
-4
config/environments/development.rb
+7
-1
db/migrate/20191126074641_devise_create_users.rb
+2
-4
No files found.
app/mailers/application_mailer.rb
View file @
4e5fbc1a
class
ApplicationMailer
<
ActionMailer
::
Base
class
ApplicationMailer
<
ActionMailer
::
Base
default
from:
'
from
@example.com'
default
from:
'
noreply
@example.com'
layout
'mailer'
layout
'mailer'
end
end
app/views/users/show.html.erb
View file @
4e5fbc1a
...
@@ -15,10 +15,8 @@
...
@@ -15,10 +15,8 @@
</br>
</br>
<div
class=
"actions"
>
<div
class=
"actions"
>
<%=
form_for
(
@user
,
url:
my_path
(
params
[
:id
]))
do
|
f
|
%>
<%=
link_to
"Update"
,
my_info_path
,
class:
"btn btn-primary"
%>
<%=
f
.
submit
"Update"
,
class:
"btn btn-primary"
%>
<%=
link_to
"My Jobs"
,
"#"
,
class:
"btn btn-primary"
%>
<%=
f
.
submit
"My Jobs"
,
class:
"btn btn-primary"
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
config/environments/development.rb
View file @
4e5fbc1a
...
@@ -36,7 +36,6 @@ Rails.application.configure do
...
@@ -36,7 +36,6 @@ Rails.application.configure do
config
.
action_mailer
.
perform_caching
=
false
config
.
action_mailer
.
perform_caching
=
false
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost'
,
port:
3000
}
# Print deprecation notices to the Rails logger.
# Print deprecation notices to the Rails logger.
config
.
active_support
.
deprecation
=
:log
config
.
active_support
.
deprecation
=
:log
...
@@ -60,4 +59,11 @@ Rails.application.configure do
...
@@ -60,4 +59,11 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
# routes, locales, etc. This feature depends on the listen gem.
config
.
file_watcher
=
ActiveSupport
::
EventedFileUpdateChecker
config
.
file_watcher
=
ActiveSupport
::
EventedFileUpdateChecker
config
.
action_mailer
.
delivery_method
=
:smtp
# Use this on the cloud IDE.
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost'
,
port:
3000
}
config
.
action_mailer
.
smtp_settings
=
{
address:
'127.0.0.1'
,
port:
1025
}
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
end
end
db/migrate/20191126074641_devise_create_users.rb
View file @
4e5fbc1a
# frozen_string_literal: true
class
DeviseCreateUsers
<
ActiveRecord
::
Migration
[
6.0
]
class
DeviseCreateUsers
<
ActiveRecord
::
Migration
[
6.0
]
def
change
def
change
create_table
:users
do
|
t
|
create_table
:users
do
|
t
|
...
@@ -29,7 +27,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
...
@@ -29,7 +27,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
t
.
string
:remember_digest
t
.
string
:remember_digest
t
.
datetime
:activated_at
t
.
datetime
:activated_at
t
.
string
:activation_digest
t
.
string
:activation_digest
#
t.datetime :confirmation_sent_at
t
.
datetime
:confirmation_sent_at
# t.string :unconfirmed_email # Only if using reconfirmable
# t.string :unconfirmed_email # Only if using reconfirmable
...
@@ -44,7 +42,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
...
@@ -44,7 +42,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
add_index
:users
,
:email
,
unique:
true
add_index
:users
,
:email
,
unique:
true
add_index
:users
,
:username
,
unique:
true
add_index
:users
,
:username
,
unique:
true
add_index
:users
,
:reset_digest
,
unique:
true
add_index
:users
,
:reset_digest
,
unique:
true
#
add_index :users, :confirmation_token, unique: true
add_index
:users
,
:confirmation_token
,
unique:
true
# add_index :users, :unlock_token, unique: true
# add_index :users, :unlock_token, unique: true
end
end
end
end
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