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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
データエンジニアリングとドメイン駆動設計
masuda220
PRO
14
2.5k
Type-safe IaC for Dart
coborinai
0
180
20260720_クラウド女子会×PyLadiesTokyoコラボ Amazon Bedrock ハンズオン用資料
yuuka51
1
110
アップデートで何が変わった?デモで学んで使いこなすIBM Bob2.0
muehara
0
230
OPENLOGI Company Profile for engineer
hr01
1
74k
41歳でAWSが好きすぎてITエンジニアになったおっさんの話
yama3133
1
740
SoccerMaster: A Vision Foundation Model for Soccer Understanding
kzykmyzw
0
160
変更し続けられるシステムをどう保つか — AI時代のSSoTという設計原則
kawauso
1
1.1k
凡エンジニアがこの先生きのこるためには。〜TypeScript完全に理解したい〜
alchemy1115
2
410
伝票作成AIエージェントを支える、LLMOpsとインフラの選択肢 / AICon2026_takeda
rakus_dev
0
260
設計レビューとAIハーネスで向き合う AIが生み出した新しいボトルネックの対処法 / Design Reviews and AI Harnesses Against New Bottlenecks Created by AI
nstock
4
430
大量データに対しても、生成AIを用いてリーズナブルにデータ加工をしたい!Databricksのai_queryについて調べてみた
kamoshika
1
280
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
410
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
280
Designing Powerful Visuals for Engaging Learning
tmiket
1
460
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
230
Optimizing for Happiness
mojombo
378
71k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
500
A Tale of Four Properties
chriscoyier
163
24k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Building Applications with DynamoDB
mza
96
7.1k
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