Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Meguro.rb #15 LT資料
Search
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
setup-vp GitLab対応の裏側
naokihaba
0
110
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
190
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
550
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
500
Jetpack Compose メカニズム
skydoves
0
440
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.5k
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
420
速習iPhone Duo対応
yuukiw00w
1
650
すこし踏み込む CancellationToken
htkym
2
570
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
150
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
340
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
290
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
330
The Language of Interfaces
destraynor
162
27k
HDC tutorial
michielstock
2
870
Designing for Performance
lara
611
70k
Unsuck your backbone
ammeep
672
58k
Six Lessons from altMBA
skipperchong
29
4.5k
Side Projects
sachag
456
43k
Thoughts on Productivity
jonyablonski
76
5.4k
How GitHub (no longer) Works
holman
316
150k
Crafting Experiences
bethany
1
340
Fireside Chat
paigeccino
43
4k
GitHub's CSS Performance
jonrohan
1033
470k
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