sample_rails_tailwind/app/views/user_mailer/account_activation.html.erb
songtianlun a54ebdbf23 feat: add account activation feature
- 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
2025-01-06 18:38:39 +08:00

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>