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
[教育訓練] Rails Form Basic
Search
HeChien Hsu
September 04, 2012
Technology
87
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
56
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
180
[Wheel Lab #2] Apple Service with Rails.
hechien
0
92
[Sokoos][教育訓練] Git - 1
hechien
0
160
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
130
[作業] 創意美學
hechien
0
70
[教育訓練] Rails Validation Basic
hechien
1
99
Rails Layout Basic
hechien
2
130
Other Decks in Technology
See All in Technology
Type-safe IaC for Dart
coborinai
0
180
AmplifyHostingConstructからSSRフレームワークのためのホスティング設計を考察する/amplify-hosting-construct
fossamagna
1
300
書籍セキュアAPIについて
riiimparm
0
210
どこまでAIに任せるか 〜確率論と決定論の境界決定〜
shukob
0
440
Alphaモジュール使っていいのかい!?いけないのかい!?どっちなんだいっ!?
watany
1
320
JAWS_ICEBERG_BASECAMP
iqbocchi
2
110
Vポイント分析基盤におけるデータモデリング20年史
taromatsui_cccmkhd
4
710
インフラと開発の垣根を超えていき!〜元AWSインフラエンジニアがAWS開発で奮闘している話〜
hatahata021
3
390
複数プロダクトで進めるAI機能実装 ── 実践から得たリアルな学びとロードマップ実現への挑戦 / AICon2026_yanari
rakus_dev
1
270
Devsumi 2026 Summer 人もAIも使える共通基盤を事業の加速装置にする~デザインシステム運用に学ぶ組織レバレッジ~ 渡辺 凌央
legalontechnologies
PRO
1
280
”AIを使う” から ”AIに任せる” へ ─ 開発プロセスを再設計してAIを組織標準にするまで
cyberagentdevelopers
PRO
1
140
2026年のソフトウェア開発を考える(2026/07版) / Agentic Software Engineering 2026-07 Findy Edition
twada
PRO
25
10k
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
380
Automating Front-end Workflow
addyosmani
1370
210k
It's Worth the Effort
3n
188
29k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
What's in a price? How to price your products and services
michaelherold
247
13k
Unsuck your backbone
ammeep
672
58k
Scaling GitHub
holman
464
140k
Skip the Path - Find Your Career Trail
mkilby
1
170
Raft: Consensus for Rubyists
vanstee
141
7.6k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
260
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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