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
Meguro.rb #15 LT資料
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
tsutomu chikuba
May 24, 2018
Programming
35
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Meguro.rb #15 LT資料
Rails(プログラミング)初心者
FAQから学ぶ何か
tsutomu chikuba
May 24, 2018
More Decks by tsutomu chikuba
See All by tsutomu chikuba
いよいよPHPerもリーンで行こう(再)
tchikuba
0
2.2k
Other Decks in Programming
See All in Programming
さぁV100、メモリをお食べ・・・
nilpe
0
130
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
530
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
280
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4k
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
5.2k
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
200
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
190
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
210
Swiftのレキシカルスコープ管理
kntkymt
0
220
AutonomyとControlのあいだ:Graflowで記述するAIエージェント協調
myui
0
110
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
140
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
330
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
We Have a Design System, Now What?
morganepeng
55
8.2k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
450
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
530
A Soul's Torment
seathinner
6
2.9k
From π to Pie charts
rasagy
0
200
Practical Orchestrator
shlominoach
191
11k
Balancing Empowerment & Direction
lara
6
1.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
sira's awesome portfolio website redesign presentation
elsirapls
0
280
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
190
Transcript
Meguro.rb#15 LT Railsʢϓϩάϥϛϯάʣॳ৺ऀ FAQ͔ΒֶͿԿ͔ 2018/05/24() tchikuba
Profile SNS: tchikuba Blog: https:// tchikuba.github.io/ Company: Livesense Ruby: 5.years.ago
None
None
None
ॳॻ੶ ແࣄग़൛ 2018/01/26ൃച
2 ແࣄग़൛ 2018/03/09ൃച
None
gemใ͍ͩ͘͞m(_ _)m
ΈΜͳେ͖ ϙΠϯτɾΞϯυɾϑΟΪϡΞ
None
ຯʹਓੜॳgem ※FIXME: Ϋιίʔυ
ຊ
None
ϓϩάϥϛϯάߨࢣ ͡Ί·ͨ͠
ಘΒΕֶͨͼΛڞ༗ ※͋Μ·Γίʔυग़͖ͯ·ͤΜm(_ _)m
࣭ͷछྨ
Q. git diffΔͱͨΒ͕ࠩ…
A. σΟϨΫτϦ͕ҧ͍·͢Ͷɻ LinuxγεςϜʹ͓͍ͯͲͷσΟϨΫτϦͰ࡞ۀ ͢Δ͔ॏཁͰ͢ͷͰ(ry
Q. error͕ग़ΔΜͰ͚͢Ͳ…
None
None
None
[1] pry(main)> buildings = Building.find(1) [2] pry(main)> building.rooms NameError: undefined
local variable or method `building' for main:Object
A. (ry
Q. partialݺͼग़͠ݩΞϯείͳ͍ ͷʹɺϑΝΠϧ໊͋ΔͷԿނʁ ▪ݺͼग़͠ݩ render ‘footer’ ▪ϑΝΠϧ໊ app/views/layouts/_footer.html.erb
A. This is the Rails way.
Q. ΦϦδφϧαʔϏε։ൃதͳΜͰ͕͢ɺ HerokuͰϧʔτυϝΠϯ͍͍ͨΜͰ͚͢Ͳ ՄೳͰ͠ΐ͏͔ʁ
A. SSLߟྀͱ͔౿·͑Δͱجຊwwwαϒυϝӡ༻ָ͕ɻ SSLͩͱ༗ྉdynoʢ࠷݄҆$7ʣݶఆɻ ҰԠCloudflare͑શແྉͰ ϧʔτυϝΠϯʴSSLͰ͑·͢ɻ ʲFYIʳ https://qiita.com/serinuntius/items/f7f08b2221f5ad068f5d
Q. CGMαʔϏε։ൃதͰ͢ɻ Ϣʔβʔͷ࣭ʢquestionsʣʹ ճʢanswersʣ͕Ͱ͖ɺ ࣗҎ֎ͷճʹථʢvotesʣ͕ Ͱ͖ΔγεςϜͰ͢ɻ ճͷථϥϯΩϯάΛ ूܭ͢ΔʹActiveRecordͰͲͷΑ͏ʹ දݱͰ͖·͔͢ʁ
A. ͜Μͳײ͡ (ଟ) User.joins(answers: votes) .group(‘users.id’) .order(‘count_all desc’).count
࣭Λྨͯ͠ΈΔ ୯७ͳΤϥʔܥɻݟΕେ͙͢ʹ͔Δɻ ཧղΛਂΊΔܥɻϋοͱ͢Δ࣭͋Δɻ ΑΓ࣮ફܥɻճ͕͍͕͋͠Δɻ
ͬ͘͟Γ͜Μͳൺ ※ࣾൺ Τϥʔܥ ࣮ફܥ ཧղܥ
·ͱΊ ʮڭ͑Δʯߦҝͷ͏ͪɺਓ͕Δ͖͜ͱͱਓ͕Βͳͯ͘ ࡁΉ͜ͱʢΈͰղܾͰ͖Δ͜ͱʣͷΈ͚͕ඞཁ ຊ࣭ΛΑΓཧղ͢Δ͜ͱ͕ඞཁͳͷͰɺͦ͜ΛͲ͏͑Δ͔ ڭ͑ΔଆͷεΩϧʹґଘ͢Δͱ͜Ζ͕େ͖͍ ʮڭҭʯͬͯۀͷׂʹʢܦࡁతʹʣใΘΕͳ͍ࣄʢͰ χʔζ͋Δʣ RubyͷΛ͛Δ׆ಈେม͚ͩͲҙٛ͋ΔΜ͡Όͳ͍ ͔
https://speakerdeck.com/kakakakakku/tips- for-teaching-rails
Meguro.rb#15 LT Railsʢϓϩάϥϛϯάʣॳ৺ऀ FAQ͔ΒֶͿԿ͔ 2018/05/24() tchikuba