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
1
61
[教育訓練] Rails Form Basic
HeChien Hsu
September 04, 2012
Tweet
Share
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
40
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
160
[Wheel Lab #2] Apple Service with Rails.
hechien
0
68
[Sokoos][教育訓練] Git - 1
hechien
0
150
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
100
[作業] 創意美學
hechien
0
48
[教育訓練] Rails Validation Basic
hechien
1
73
Rails Layout Basic
hechien
2
110
Other Decks in Technology
See All in Technology
Graph Database と Generative AI の素敵な関係
oracle4engineer
PRO
7
700
怖くないオフライン機能開発 〜基本的な技術で実現する現場向けオフライン機能 / Developing offline functions without fear ~ Offline functions for the field realized with basic technology
kaminashi
1
110
Product Utilization of Large Language Models Starting Today
ymatsuwitter
3
1.4k
スクラム導入の舞台裏:QAエンジニアがスクラムマスターになるまで
bubo1201
0
240
Microsoft 365 でデータセキュリティを強化しよう
sophiakunii
1
100
プロダクト価値を考えるための情報透明化とチーム文化づくり
nyo_taro
1
150
スタサプ ForSCHOOLアプリのシンプルな設計
recruitengineers
PRO
3
630
Deno Deploy で Web Cache API を 使えるようになったので試した知見
toranoana
1
110
Oracle Database 23ai 新機能#4 Rolling Maintenance
oracle4engineer
PRO
0
130
Case Study: Concurrent Counting
ennael
PRO
0
120
ファインディにおけるフロントエンド技術選定の歴史
puku0x
1
100
【完全版】Dify - LINE Bot連携 考え方と実用テクニック
uezo
2
430
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
How GitHub Uses GitHub to Build GitHub
holman
473
290k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Done Done
chrislema
181
16k
Writing Fast Ruby
sferik
626
60k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.5k
A Tale of Four Properties
chriscoyier
156
22k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
RailsConf 2023
tenderlove
28
840
Gamification - CAS2011
davidbonilla
80
5k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.8k
What's new in Ruby 2.0
geeforr
341
31k
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