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
[教育訓練] Rails Form Basic
Search
HeChien Hsu
September 04, 2012
Technology
88
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[教育訓練] Rails Form Basic
HeChien Hsu
September 04, 2012
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
64
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
190
[Wheel Lab #2] Apple Service with Rails.
hechien
0
97
[Sokoos][教育訓練] Git - 1
hechien
0
160
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
140
[作業] 創意美學
hechien
0
72
[教育訓練] Rails Validation Basic
hechien
1
110
Rails Layout Basic
hechien
2
140
Other Decks in Technology
See All in Technology
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
3
980
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
140
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
300
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
120
作り直せるコードは迅速に 作り直せないDBは慎重に - AI時代のプロダクトエンジニアが「判断の不可逆性」で開発速度を変える話
kinosuke01
0
300
2026-09-10 【Snowflake World Tour Tokyo 2026】dbt Core と Snowflake で実現する多層的なデータガバナンス / Multi-Layered Data Governance Powered by dbt Core and Snowflake
civitaspo
0
310
WAF 運用改善の承認サイクル/SRE_BizReach_MIXI_1
visional_engineering_and_design
2
420
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.9k
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
480
なぜSRE・セキュリティは評価されないのか?守りの組織を事業成長エンジンに変えた実践
cscengineer
PRO
3
2.4k
When Does a Local Qwen Start to Break
morshoto
0
200
Deploying a Full-Stack Bun-Native Framework on Cloudflare Workers
7nohe
0
130
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
290
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
4
620
Scaling GitHub
holman
464
140k
HDC tutorial
michielstock
2
860
Ethics towards AI in product and experience design
skipperchong
2
370
Producing Creativity
orderedlist
PRO
348
41k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Evolving SEO for Evolving Search Engines
ryanjones
0
280
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
660
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Transcript
Rails Form 徐赫謙
Rails Form Basic
Built-in • form_tag • form_for
form_tag • 不主動對應Model • 適⽤用於不需要與Model直接互動的表單
form_for • 與Model有直接的關係 • 需要帶⼊入Resource • 欄位名稱⼀一定要是能存取的屬性
field helpers (tag) • text_field_tag • text_area_tag • hidden_field_tag •
label_tag • select_tag • submit_tag • check_box_tag • radio_button_tag • field_set_tag • password_field_t ag • ... more
field helpers (for) • text_field • text_area • hidden_field •
label • select • submit • check_box • radio_button • fields_for • password_field • file_field • ... more
Example • form_for: https://gist.github.com/3507380#file_form_for.html.erb • form_tag: https://gist.github.com/3507380#file_form_tag.html.erb
Nested Form 可以輕易的建⽴立嵌套Model的Records
Nested Form https://gist.github.com/3507380#file_survey.rb
Built-in
Rubygem
Simple Form
https://gist.github.com/3507380#file_simple_new.html.erb
Simple Form
Rubygem