Topics Covered: ActiveRecord Callbacks, ActionMailer
In today's code along, you learnt how to implement email functionality in an app. Kitties have been getting pretty frustrated with their inability to flood other kitty inboxes. For this exercise, implement the Action Mailer functionality to allow sending emails in your meowbook. For reference, use Action Mailer Rails Guide.
Note that we haven't told you exactly what you should be implementing in Meowbook with ActionMailer! It's up to you to decide how this feature could be used to make the project awesome! Note that it would be doubly awesome if you use ActiveRecord callbacks to accomplish this!
Check these out:
# The link_to method takes an options hash as its last argument
# so we can leave out the {} around class and btn
link_to "Edit", edit_tweet_path(tweet), :class => "btn"
# We could also use json-like syntax like so:
link_to "Edit", edit_tweet_path(tweet), class: "btn"