Reputation: 392
I am new to RoR, have a registration page, with an "email" field. When the user registers a mail is sent successfully to his mail address but the problem is that it takes a while -about 6 - 10 seconds during which period the page is still reloading. Is this normal, is there an optimization option? any help would be appreciated. I'm Using ActionMailer Bundled with RoR.
Upvotes: 0
Views: 725
Reputation: 115531
It's perfectly normal, the user has to wait for the mail to be sent because you include directly in the action.
One dedicated solution is to make mail sending asynchronous with tools such as Delayed Job.
See screencast: http://railscasts.com/episodes/171-delayed-job
Upvotes: 3