02 Jul '12, 6am

@johnbarton writing an interceptor for this case is pretty trivial.

@johnbarton writing an interceptor for this case is pretty trivial.

Next we need to write the code that will deliver the email when the user is created. Some people like to use a Model Observer to do this, but we’re going to keep the code in the controller layer. The reason for doing it this way is that if we do use an observer and then create User objects in the Rails console for testing purposes emails will be sent in the background which is something we don’t want. We only want the emails to be sent when users are interacting with the application itself in which case they’ll be passing through the controller.

Full article: http://asciicasts.com/episodes/206-action-mailer-in-rails-3

Tweets

DABlog Splitting hairs over "resource": the cas...

dablog.rubypal.com 01 Jul '12, 9pm

Splitting hairs over "resource": the case for the affirmative (Part 2) April 24th, 2008 In part 1 of this two-part post, I...

Devise and Mailer - Ruby Forum:

ruby-forum.com 02 Jul '12, 1pm

Hello all, I am trying to get Devise and Mailer to work together. Whenever I send an email for the "Forget password' secti...

OMG! WARNING Millions in Animal Shelter Donatio...

ecorazzi.com 01 Jul '12, 5am

As expected, HSUS damage control employee Sarah Barnett, who spends her days surfing the internet, typing up – over and ov...

DABlog Splitting hairs over "resource": the cas...

dablog.rubypal.com 01 Jul '12, 9pm

Splitting hairs over "resource": the case for the affirmative (Part 1) March 22nd, 2008 I’ve commented on the main Rails m...

Rails 3 upgrade process (the road from 2.3.14 t...

rubyflow.com 03 Jul '12, 4pm

Rails 3 upgrade process (the road from 2.3.14 to 3.2.6) Posted by dalibor on July 03, 2012 — 0 comments Rails 3 upgrade pr...

JULIA STRIPE UNIVERSAL CASE from @Coach

coach.com 01 Jul '12, 12am

Hand-assembled in classic Coach Legacy Stripe fabric with golden trim and card-size pockets inside and out, this pretty ca...

Продолжаем традиции: В Ruby5 рассказали про R18...

ruby5.envylabs.com 29 Jun '12, 1pm

June 22nd, 2012 Better late than never, June 22nd's episode is live, featuring stories about gems, blog entries, and even ...

@pichotweb aqui o post de rotas

engineyard.com 29 Jun '12, 7pm

Stop! I’d like to tell you something important, but it may be a bit shocking, so you should probably have a seat. Here goe...

Events - Action Parties #3 - 07-08 Jul Curated ...

timeoutsingapore.com 01 Jul '12, 4pm

M1 Singapore Fringe Festival: Art and faith SG under 60 minutes: Gallery hopping in Tanjong Pagar Interview with William W...

Ruby5 Episode #285: Periscope, ROSC, Seedbank, ...

ruby5.envylabs.com 03 Jul '12, 5pm

June 29th, 2012 Learn about oauth, the Greener Ruby Test Challenge, an open source IRC gateway, better file attachments, R...

Blog: Assange Show Final Episode: Anwar Ibrahim...

anwaribrahimblog.com 03 Jul '12, 6pm

In the final episode, Julian Assange talks to Malaysia’s opposition leader, who faced prison terms twice in what he calls ...

Railscasts - Routing in Rails 3:

railscasts.com 23 Jun '12, 12am

Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and sho...

Protect your Rails project from Hackers:

asciicasts.com 28 Jun '12, 3am

26: Hackers Love Mass Assignment (view original Railscast) Other translations: Other formats: Mass assignment is something...

Databases & Rails: Week 3 Build HTML with Pure ...

rubyflow.com 26 Jun '12, 3pm

Databases & Rails: Week 3 Build HTML with Pure Ruby (no Rails) Posted by schneems on June 26, 2012 — 0 comments Week 3 in ...

@ctford not read any rails books in a while, bu...

rubyinside.com 28 Jun '12, 11am

The Ruby on Rails Tutorial: Learn Rails by Example (a.k.a. railstutorial.org ) by Michael Hartl has become a must read for...