songtianlun
a54ebdbf23
- Implement AccountActivationsController for activation logic - Create UserMailer for sending activation emails - Update SessionsController to handle unactivated users - Modify UsersController to restrict access to activated users - Add activation fields to User model and database migration - Create views for account activation emails - Add tests for account activation functionality
15 lines
412 B
Plaintext
15 lines
412 B
Plaintext
<h1>Sample App</h1>
|
|
|
|
<p>Hi <%= @user.name %></p>
|
|
|
|
<p>
|
|
Welcome to the Sample App! Click on the link below to activate your account:
|
|
</p>
|
|
|
|
<%= link_to "Activate", edit_account_activation_url(@user.activation_token,
|
|
email:@user.email) %>
|
|
|
|
<p>
|
|
<%= edit_account_activation_url(@user.activation_token,
|
|
email:@user.email) %>
|
|
</p> |