lib/action_view/helpers/form_helper.rb
v or view |
<h1>controller#action</h1> |
def form_with binding.pry |
Then $ rails s (restart server) |
f or form |
form_with single model |
fn |
form_with nested two model |
vshow1 |
vshow2..6 |
d fields_for binding.pry |
fields_for (最中) |
ffull_time_employment, |
d check_box binding.pry |
f.check_box <input type="hidden" value="0"> <input type="checkbox" value="1"> |
fpart_time_contract, ffull_time_contract, ffull_time_employment |
d color_field binding.pry |
f.color_field <input type="color" value="#000000"> |
fbackground_color, fcolor |
d date_field binding.pry |
f.date_field <input type="date"> |
favaiable_on, foccured_on |
d datetime_field binding.pry |
f.datetime_field <input type="datetime-local"> |
fstarts_at |
d email_field binding.pry |
f.email_field <input type="email"> |
femail |
d file_field binding.pry |
f.file_field <input type="file"> |
fattachment, favatar, fcover_image, ffeatured_image, fphoto |
|
|
lib/action_view/helpers/form_helper.rb
d number_field binding.pry |
f.number_field <input type="number"> |
fcapacity, fprice |
d password_field binding.pry |
f.password_field <input type="password"> |
fpassword |
d radio_button binding.pry |
f.radio_button <input type="radio"> |
fsearch_status |
d search_field binding.pry |
f.search_field <input type="search"> |
fquery |
d telephone_field binding.pry |
f.telephone_field <input type="tel"> |
d text_field binding.pry |
f.text_field <input type="text"> |
fcity, fcompany, fcountry. fgithub, fhero, fhomepage, flinkedin, flocation, fname, fname_on_card, fpath, fslug, fstackoverflow, fstate, ftitle, ftwitter, fusername, fweb |
d time_field binding.pry |
f.time_field <input type="time"> |
fclock_on, fclock_off |
d url_field binding.pry |
f.url_field <input type="url"> |
furl |
d text_area binding.pry |
f.text_area <textarea> |
fabout, fbio, fcomment, fcontent, fdescription, fkey, fmeta_description, fnote |
|