Commit 4e5fbc1a by Đường Sỹ Hoàng

Fixed link_to

parent 35f18768
class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
default from: 'noreply@example.com'
layout 'mailer'
end
......@@ -15,10 +15,8 @@
</br>
<div class="actions">
<%= form_for(@user, url: my_path(params[:id])) do |f| %>
<%= f.submit "Update", class: "btn btn-primary" %>
<%= f.submit "My Jobs", class: "btn btn-primary" %>
<% end %>
<%= link_to "Update", my_info_path, class: "btn btn-primary" %>
<%= link_to "My Jobs", "#", class: "btn btn-primary" %>
</div>
</div>
</div>
......
......@@ -36,7 +36,6 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
......@@ -60,4 +59,11 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
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
# frozen_string_literal: true
class DeviseCreateUsers < ActiveRecord::Migration[6.0]
def change
create_table :users do |t|
......@@ -29,7 +27,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
t.string :remember_digest
t.datetime :activated_at
t.string :activation_digest
# t.datetime :confirmation_sent_at
t.datetime :confirmation_sent_at
# t.string :unconfirmed_email # Only if using reconfirmable
......@@ -44,7 +42,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[6.0]
add_index :users, :email, unique: true
add_index :users, :username, 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
end
end
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