Ruby on Rails Friday, December 13, 2019

You're looking at the id. If you look at how the form renders in a browser, the name property will be the usual Rails nested format:

<input type="date" name="auction_listing[start_date]" id="auction_listing_start_date">

I can't be bothered to write out an entire set of select tags, just imagine if datetime_select was written as date_tag. That's how it would render.

Walter

> On Dec 13, 2019, at 3:26 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I mean the field names Instead of just fieldname it's tablename_fieldname
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f6241dbd-793c-4efc-b698-eb59d5ed22aa%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/D9D072FB-ACC1-47B5-BE49-ECF3E823CA4F%40wdstudio.com.

No comments:

Post a Comment