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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Ben Woodall
April 16, 2015
Programming
0
70
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
44
UW Advanced Rails Week 8
benwoodall
0
51
UW Advanced Rails Week 7
benwoodall
0
47
Week 6
benwoodall
0
51
UW Advanced Rails Week 5
benwoodall
0
57
UW Advanced Rails Week 4
benwoodall
0
72
UW Advanced Rails Week 2
benwoodall
0
190
UW Advanced Rails Week 1
benwoodall
0
100
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.7k
存在論的プログラミング: 時間と存在を記述する
koriym
4
480
Codex の「自走力」を高める
yorifuji
0
1.3k
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
3
1.9k
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
130
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
130
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
7
3.1k
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
0
180
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
800
RailsのValidatesをSwift Macrosで再現してみた
hokuron
0
130
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
180
Rethinking API Platform Filters
vinceamstoutz
0
620
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
220
The Cult of Friendly URLs
andyhume
79
6.8k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The SEO identity crisis: Don't let AI make you average
varn
0
420
Docker and Python
trallard
47
3.8k
How GitHub (no longer) Works
holman
316
150k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
490
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
93
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