Ruby on Rails Sunday, March 27, 2016

I have attached some of my files for user activation mail. You can check
it.
and here is what I get on development log file when I signup a new user.
and the mail in development log file.

Started POST "/users" for ::1 at 2016-03-27 20:37:31 +0530
Processing by UsersController#create as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"k37x/FEjLGKxkSbAMlH1zt3QLze/gQCXHrwk0bXtlFPoF/mbduoI4gQ4H7bhZOhD+jw2375EpMzqy6IeeifmHQ==",
"user"=>{"name"=>"testing", "email"=>"siteshranjan39@gmail.com",
"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"},
"commit"=>"Create my account"}
[1m[35m (1.0ms)[0m BEGIN
[1m[36mUser Exists (36.6ms)[0m [1mSELECT 1 AS one FROM `users` WHERE
`users`.`email` = 'siteshranjan39@gmail.com' LIMIT 1[0m
[1m[35mSQL (111.8ms)[0m INSERT INTO `users` (`name`, `email`,
`password_digest`, `created_at`, `updated_at`, `activation_digest`)
VALUES ('testing', 'siteshranjan39@gmail.com',
'$2a$10$0Q8teDUvinfjI3y.df4lwuDKcT1DiKUHmxk.VX0Iz8LPaANI4VVvy',
'2016-03-27 15:07:32', '2016-03-27 15:07:32',
'$2a$10$FQI1PtuYiq7UOFK8WVsUnuZ2lUS5gR04LC.dqQ8ILW5QIHdZzRJtq')
[1m[36m (32.3ms)[0m [1mCOMMIT[0m
Rendered user_mailer/account_activation.html.erb within layouts/mailer
(2.0ms)
Rendered user_mailer/account_activation.text.erb within layouts/mailer
(0.0ms)

UserMailer#account_activation: processed outbound mail in 315.2ms

Sent mail to siteshranjan39@gmail.com (340.5ms)
Date: Sun, 27 Mar 2016 20:37:33 +0530
From: amanprince28@gmail.com
To: siteshranjan39@gmail.com
Message-ID: <56f7f7366091_2668335a2582025e@DESKTOP-A70NEJG.mail>
Subject: Account activation
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_56f7f735c4e0f_2668335a258201e4";
charset=UTF-8
Content-Transfer-Encoding: 7bit


----==_mimepart_56f7f735c4e0f_2668335a258201e4
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi testing,

Welcome to the Ama's Website! Click on the link below to activate your
account:

https://localhost:3000/account_activations/pkYUYrlBZPPqz82hSPyMSQ/edit?email=siteshranjan39%40gmail.com


----==_mimepart_56f7f735c4e0f_2668335a258201e4
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit

<html>
<body>
<h1>Aman website</h1>

<p>Hi testing,</p>

<p>
Welcome to the Aman's website! Click on the link below to activate
your account:
</p>

<a
href="https://localhost:3000/account_activations/pkYUYrlBZPPqz82hSPyMSQ/edit?email=siteshranjan39%40gmail.com">Activate</a>


</body>
</html>

----==_mimepart_56f7f735c4e0f_2668335a258201e4--

Redirected to http://localhost:3000/
Completed 302 Found in 2635ms (ActiveRecord: 181.6ms)


Started GET "/" for ::1 at 2016-03-27 20:37:34 +0530
Processing by SitePagesController#home as HTML
Rendered site_pages/home.html.erb within layouts/application (2.0ms)
Rendered layouts/_menubar.html.erb (4.0ms)
Rendered layouts/_footer.html.erb (1.0ms)
Completed 200 OK in 285ms (Views: 284.6ms | ActiveRecord: 0.0ms)


Started GET "/login" for ::1 at 2016-03-27 20:57:05 +0530
Processing by LoginController#new as HTML
Rendered login/new.html.erb within layouts/application (2847.2ms)
Rendered layouts/_menubar.html.erb (69.8ms)
Rendered layouts/_footer.html.erb (1.0ms)
Completed 200 OK in 7874ms (Views: 7721.3ms | ActiveRecord: 0.0ms)


And I am entering this url for activation
https://localhost:3000/account_activations/pkYUYrlBZPPqz82hSPyMSQ/edit?email=siteshranjan39%40gmail.com

Attachments:
http://www.ruby-forum.com/attachment/11315/account_activations_controller.rb
http://www.ruby-forum.com/attachment/11316/users_controller.rb
http://www.ruby-forum.com/attachment/11317/application_controller.rb
http://www.ruby-forum.com/attachment/11318/application_mailer.rb
http://www.ruby-forum.com/attachment/11319/user_mailer.rb
http://www.ruby-forum.com/attachment/11320/account_activation.html.erb


--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0e94ffcbeab6f0b2c0781385ce9b744f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment