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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
66
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
200
[Wheel Lab #2] Apple Service with Rails.
hechien
0
120
[Sokoos][教育訓練] Git - 1
hechien
0
180
[數位教學] 用Bootstrap製作網頁
hechien
0
1.4k
DesignYou - 專題報告投影片
hechien
0
150
[作業] 創意美學
hechien
0
87
[教育訓練] Rails Validation Basic
hechien
1
120
Rails Layout Basic
hechien
2
140
Other Decks in Technology
See All in Technology
Adversary Infrastructure Hunting101
disconinja
0
110
From Developer Experience to Agentic Experience: The Next Evolution of APIs
benjagm
0
120
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
270
sue445's proposals 2026
sue445
0
140
局所最適は悪ではない。壊れているのは指標です。量と質を同時に見る先行指標の設計
recruitengineers
PRO
2
880
AWSDirectConnectの構築の進め方を整理してみた
masa_my
1
160
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
400
Steerable Visual Representations
sansantech
PRO
0
320
小規模OSSモデルは サイバーセキュリティ業務に どこまで使えるか
bbrbbq
0
250
「エーアイ」をバズワードにしないために RPA 導入経験と Kiro 上での Claude モデル利用経験から
kazzpapa3
0
120
AIをリアル世界に解き放つ 〜M5Stack×AIであなたのアイディアを手の平に〜
hamadakoji
1
400
ポケモン対戦を自動で記録して振り返ろう
fufufukakaka
0
300
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
460
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
610
Everyday Curiosity
cassininazir
0
360
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Side Projects
sachag
456
43k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Faster Mobile Websites
deanohume
310
32k
30 Presentation Tips
portentint
PRO
1
440
The World Runs on Bad Software
bkeepers
PRO
72
12k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
530
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