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
160
UW Advanced Rails Week 1
benwoodall
0
94
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
330
Advanced Micro Frontends: Multi Version/ Framework Scenarios @WAD 2025, Berlin
manfredsteyer
PRO
0
370
Claude Code + Container Use と Cursor で作る ローカル並列開発環境のススメ / ccc local dev
kaelaela
12
6.7k
ペアプロ × 生成AI 現場での実践と課題について / generative-ai-in-pair-programming
codmoninc
2
20k
GPUを計算資源として使おう!
primenumber
1
200
Agentic Coding: The Future of Software Development with Agents
mitsuhiko
0
120
生成AI時代のコンポーネントライブラリの作り方
touyou
1
260
技術同人誌をMCP Serverにしてみた
74th
1
680
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
1
280
MDN Web Docs に日本語翻訳でコントリビュートしたくなる
ohmori_yusuke
1
130
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
810
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
790
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
It's Worth the Effort
3n
185
28k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
The Cult of Friendly URLs
andyhume
79
6.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Typedesign – Prime Four
hannesfritz
42
2.7k
A better future with KSS
kneath
238
17k
Unsuck your backbone
ammeep
671
58k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
830
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
970
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