Ruby on Rails Friday, October 4, 2019



On Saturday, October 5, 2019 at 12:19:22 AM UTC-4, hasan...@gmail.com wrote:
[response inline]

On Fri, 4 Oct 2019 at 21:08, fugee ohu <fuge...@gmail.com> wrote:
 has_many :item_properties, through: :item_item_properties

Implying that you have a model corresponding to item_item_properties. You can add fields to it through the relevant migration or using the migration convenience generator.  -- H

--
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

I'm creating a new item passing in item_type in my get request to the item controller new action
item_properties has the item_type and name fields
item_item_properties has the item_id and text_value fields
how do i get the fields for item_item_properties on the new item form?

--
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/fb77d5f1-12da-48c9-8459-e7818a744b88%40googlegroups.com.

No comments:

Post a Comment