Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
UW Advanced Rails Week 3
Search
Ben Woodall
April 16, 2015
Programming
0
65
UW Advanced Rails Week 3
Slides from Week 3
Ben Woodall
April 16, 2015
Tweet
Share
More Decks by Ben Woodall
See All by Ben Woodall
UW Advanced Rails Week 9
benwoodall
0
37
UW Advanced Rails Week 8
benwoodall
0
46
UW Advanced Rails Week 7
benwoodall
0
43
Week 6
benwoodall
0
44
UW Advanced Rails Week 5
benwoodall
0
52
UW Advanced Rails Week 4
benwoodall
0
64
UW Advanced Rails Week 2
benwoodall
0
170
UW Advanced Rails Week 1
benwoodall
0
94
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
例外処理を理解して、設計段階からエラーを見つけやすく、起こりにくく #phpconfuk
kajitack
12
6.3k
AI時代もSEOを頑張っている話
shirahama_x
0
140
Java_プロセスのメモリ監視の落とし穴_NMT_で見抜けない_glibc_キャッシュ問題_.pdf
ntt_dsol_java
0
220
無秩序からの脱却 / Emergence from chaos
nrslib
1
6.5k
TypeScript 5.9で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
330
Evolving NEWT’s TypeScript Backend for the AI-Driven Era
xpromx
0
150
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
1
110
Reactive Thinking with Signals and the new Resource API
manfredsteyer
PRO
0
110
「AWS CDK入門」の前日譚/Prequelto-Introduction-To-AWSCDK
tyumugi1113
0
100
JJUG CCC 2025 Fall: Virtual Thread Deep Dive
ternbusty
3
470
ソフトウェア設計の課題・原則・実践技法
masuda220
PRO
20
13k
仕様がそのままテストになる!Javaで始める振る舞い駆動開発
ohmori_yusuke
8
4.6k
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Context Engineering - Making Every Token Count
addyosmani
9
410
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
192
56k
How GitHub (no longer) Works
holman
315
140k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
How to train your dragon (web standard)
notwaldorf
97
6.4k
The Pragmatic Product Professional
lauravandoore
36
7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Designing for humans not robots
tammielis
254
26k
The Language of Interfaces
destraynor
162
25k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Transcript
Questions from Week 2? 1
Week 3: 3rd Party Services & Email Spring 2015 2
What are 3rd Party Services? 3
What are some examples of 3rd Party Services? 4
What are some examples of 3rd Party Services? 5
What are some examples of 3rd Party Services? 6
What are some examples of 3rd Party Services? 7
REST SOAP RPC Web Sockets 8 How do we communicate
with them?
LIVE DEMO!
Using 3rd Party Services in Shortener 10
11
We need to update the dashboard view Controller needs to
know what to do if the user wants to tweet the link Give the user the ability to tweet Tweet! 12 What do we know so far?
Testing! 13 specs/controllers/links_controller_spec.rb
Our controller 14 app/controllers/links_controller.rb
Tweeting! 15 Gemfile app/models/user.rb
User migration 16
Console 17
What about testing? 18
What about testing? 19
Webmock 20 Gemfile spec/support/twitter.rb spec/spec_helper.rb
Tests 21
Email! 22
We need to tie into a mailing service Create a
mailer to mail an email to the user Make updates SOMEWHERE to email when a new user is created Build an email! 23 What do we know so far?
Setting up Mandrill 24 config/environments/production.rb
Setting up dev/test 25
Setting up dev/test 26
MailCatcher Setup 27 config/environments/development.rb Gemfile
Test Setup 28 config/environments/test.rb
Production 29 config/environments/production.rb
Creating a Mailer 30
The Mailers 31 app/mailers/user_mailer.rb app/mailers/application_mailer.rb
32 specs/mailers/user_mailer_spec.rb
33 specs/controllers/users_controller_spec.rb
#welcome_user 34 app/mailers/user_mailer.rb
Questions? 35