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
62
[教育訓練] 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
69
[Sokoos][教育訓練] Git - 1
hechien
0
150
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
110
[作業] 創意美學
hechien
0
49
[教育訓練] Rails Validation Basic
hechien
1
75
Rails Layout Basic
hechien
2
120
Other Decks in Technology
See All in Technology
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
200
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
1
230
継続的にアウトカムを生み出し ビジネスにつなげる、 戦略と運営に対するタイミーのQUEST(探求)
zigorou
0
680
MLOps の現場から
asei
7
660
watsonx.ai Dojo #5 ファインチューニングとInstructLAB
oniak3ibm
PRO
0
190
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
230
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
270
.NET 9 のパフォーマンス改善
nenonaninu
0
1.2k
PHPerのための計算量入門/Complexity101 for PHPer
hanhan1978
5
270
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
270
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
5分でわかるDuckDB
chanyou0311
10
3.3k
Featured
See All Featured
Fireside Chat
paigeccino
34
3.1k
Rails Girls Zürich Keynote
gr2m
94
13k
Bash Introduction
62gerente
609
210k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Agile that works and the tools we love
rasmusluckow
328
21k
Adopting Sorbet at Scale
ufuk
73
9.1k
Producing Creativity
orderedlist
PRO
342
39k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
900
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The World Runs on Bad Software
bkeepers
PRO
66
11k
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