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
tsutomu chikuba
May 24, 2018
Programming
0
27
Meguro.rb #15 LT資料
Rails(プログラミング)初心者
FAQから学ぶ何か
tsutomu chikuba
May 24, 2018
Tweet
Share
More Decks by tsutomu chikuba
See All by tsutomu chikuba
いよいよPHPerもリーンで行こう(再)
tchikuba
0
2.1k
Other Decks in Programming
See All in Programming
Outline View in SwiftUI
1024jp
1
330
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
120
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
RubyLSPのマルチバイト文字対応
notfounds
0
120
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
330
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.5k
イベント駆動で成長して委員会
happymana
1
320
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
43
13k
Faster Mobile Websites
deanohume
305
30k
A Philosophy of Restraint
colly
203
16k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Designing the Hi-DPI Web
ddemaree
280
34k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Teambox: Starting and Learning
jrom
133
8.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
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