similar to: accepts_nested_attributes_for and fields_for not working!

Displaying 20 results from an estimated 100 matches similar to: "accepts_nested_attributes_for and fields_for not working!"

2010 Aug 10
2
p-values with pvclust
Hi, if you look at the first image (Image1) you see that there are 2 main clusters 7 and 8 I wanted to use pvclust to calculate a p-value whether these clusters are due to chance or statistically significant. Unfortunately pvclust does not provide a p-value for the first brunch (7 and 8). So I added a row to my matrix which is very different to the rest of the data to create an additional
2020 Feb 18
3
[PATCH V2 3/5] vDPA: introduce vDPA bus
On Mon, Feb 17, 2020 at 02:08:03PM +0800, Jason Wang wrote: > I thought you were copied in the patch [1], maybe we can move vhost related > discussion there to avoid confusion. > > [1] https://lwn.net/Articles/811210/ Wow, that is .. confusing. So this is supposed to duplicate the uAPI of vhost-user? But it is open coded and duplicated because .. vdpa? > So it's cheaper and
2020 Feb 18
3
[PATCH V2 3/5] vDPA: introduce vDPA bus
On Mon, Feb 17, 2020 at 02:08:03PM +0800, Jason Wang wrote: > I thought you were copied in the patch [1], maybe we can move vhost related > discussion there to avoid confusion. > > [1] https://lwn.net/Articles/811210/ Wow, that is .. confusing. So this is supposed to duplicate the uAPI of vhost-user? But it is open coded and duplicated because .. vdpa? > So it's cheaper and
2020 Feb 19
0
[PATCH V2 3/5] vDPA: introduce vDPA bus
On 2020/2/18 ??9:56, Jason Gunthorpe wrote: > On Mon, Feb 17, 2020 at 02:08:03PM +0800, Jason Wang wrote: > >> I thought you were copied in the patch [1], maybe we can move vhost related >> discussion there to avoid confusion. >> >> [1] https://lwn.net/Articles/811210/ > Wow, that is .. confusing. > > So this is supposed to duplicate the uAPI of vhost-user?
2018 Jul 16
0
[PATCH net-next V2 0/8] Packed virtqueue support for vhost
On Mon, Jul 16, 2018 at 05:46:33PM +0800, Jason Wang wrote: > > > On 2018?07?16? 16:39, Michael S. Tsirkin wrote: > > On Mon, Jul 16, 2018 at 11:28:03AM +0800, Jason Wang wrote: > > > Hi all: > > > > > > This series implements packed virtqueues. The code were tested with > > > Tiwei's guest driver series at
2020 Feb 17
0
[PATCH V2 3/5] vDPA: introduce vDPA bus
On 2020/2/14 ??9:52, Jason Gunthorpe wrote: > On Fri, Feb 14, 2020 at 11:23:27AM +0800, Jason Wang wrote: > >>>> Though all vDPA devices have the same programming interface, but the >>>> semantic is different. So it looks to me that use bus complies what >>>> class.rst said: >>>> >>>> " >>>> >>>> Each
2018 Jul 16
3
[PATCH net-next V2 0/8] Packed virtqueue support for vhost
On 2018?07?16? 16:39, Michael S. Tsirkin wrote: > On Mon, Jul 16, 2018 at 11:28:03AM +0800, Jason Wang wrote: >> Hi all: >> >> This series implements packed virtqueues. The code were tested with >> Tiwei's guest driver series at https://patchwork.ozlabs.org/cover/942297/ >> >> >> Pktgen test for both RX and TX does not show obvious difference with
2018 Jul 16
3
[PATCH net-next V2 0/8] Packed virtqueue support for vhost
On 2018?07?16? 16:39, Michael S. Tsirkin wrote: > On Mon, Jul 16, 2018 at 11:28:03AM +0800, Jason Wang wrote: >> Hi all: >> >> This series implements packed virtqueues. The code were tested with >> Tiwei's guest driver series at https://patchwork.ozlabs.org/cover/942297/ >> >> >> Pktgen test for both RX and TX does not show obvious difference with
2018 Jul 17
1
[PATCH net-next V2 0/8] Packed virtqueue support for vhost
On 2018?07?16? 20:49, Michael S. Tsirkin wrote: > On Mon, Jul 16, 2018 at 05:46:33PM +0800, Jason Wang wrote: >> >> On 2018?07?16? 16:39, Michael S. Tsirkin wrote: >>> On Mon, Jul 16, 2018 at 11:28:03AM +0800, Jason Wang wrote: >>>> Hi all: >>>> >>>> This series implements packed virtqueues. The code were tested with >>>>
2011 Jul 16
0
nested_form gem don't work for accepts_nested_attributes_for :limit
Hello, I have the next: class Post < ActiveRecord::Base has_many :image, :dependent => :destroy accepts_nested_attributes_for :image, :allow_destroy => true, :limit => 4 end class Image < ActiveRecord::Base belongs_to :Post ... paperclip settings ... end And the form view for the post is: <%= nested_form_for @post, :html => { :multipart => true } do |f| %>
2010 Mar 09
0
undefined method `accepts_nested_attributes_for' for #<Class:
Sorry for the newb question, but it is: going through first steps I fond this exception. Have no idea, my rails version is 2.3.5 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Jul 08
0
accepts_nested_attributes_for and has_one
Hi all, I''m seeing some unexpected behaviour in a nested model and I''m not sure if it''s a bug or if I''m doing something wrong. When assigning nested attributes, the associated object gets replaced with a new record. Example code: class Car < ActiveRecord::Base belongs_to :driver end class Car < ActiveRecord::Base belongs_to :driver end
2011 Sep 27
0
accepts_nested_attributes_for is not working for uniqueness
class User < ActiveRecord::Base accepts_nested_attributes_for :emails, :allow_destroy => true, :reject_if => proc { |attributes| attributes[''address''].blank? } end class Email < ActiveRecord::Base belongs_to :user validates_presence_of :address validates_email_format_of :address validates_uniqueness_of :address,
2013 Mar 14
0
[Rails 3.2] accepts_nested_attributes_for and time_select
Hi, I am upgrading a Rails application from Rails 3.1.11 to 3.2.12, but have a problem with ` accepts_nested_attributes_for` in conjunction with multipart attributes. The app is used to manage oral exams, so there is a model `Exam`, which has many `Examdate`s. When creating an exam, I can also create the examdates, consisting of a date, a start time and an end time. While the date field is
2010 Feb 25
1
accepts_nested_attributes_for vs. multiple controllers on one page
Hi, I''d like to render the results from show, create, edit and delete actions for several different models (one controller per model) on one page. While these several models are conceptually related, they do not need to be associated with each other. So, I''d rather not impose associations on them just to use accepts_nested_attributes_for to facilitate their presentation in a
2009 Jun 24
1
accepts_nested_attributes_for :reject_if issue
I have the following models: class Order < ActiveRecord::Base belongs_to :billing_address belongs_to :shipping_address accepts_nested_attributes_for :billing_address accepts_nested_attributes_for :shipping_address, :reject_if => proc { |attributes| attributes[''has_shipping_address''] != ''1'' } def after_initialize self.build_billing_address
2009 Jul 28
0
'double' nest form fields with accepts_nested_attributes_for
Hi Is it possible to ''double'' nest form fields with accepts_nested_attributes_for? Something like: [code=ruby]<% form_for parent do |parent_form| %> <% parent_form.fields_for parent_children do |parent_children_fields| %> ... <% parent_children_fields.fields_for parent_child_activities do | parent_child_activities_fields| %>
2011 Apr 07
0
accepts_nested_attributes_for, validations, :inverse_of option on associations, and IdentityMap
This feels more like a question to ask the core list, forgive me if I trespass. I''ve been trying to help one of my cow orkers get through a sticky problem. He''s got a fairly complex nested form to update a model and its children. He''s started adding some validations, and we''ve encountered a number of issues: First he had a validation on one of the child
2010 Feb 06
1
accepts_nested_attributes_for with has_many => :through
I have two models, links and tags, associated through a 3rd model, link_tags. I added the following to my link model, has_many :tags, :through => :link_tags has_many :link_tags accepts_nested_attributes_for :tags, :allow_destroy => :false, :reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } } and put this in a partial called by the new and edit forms for links,
2013 Nov 10
3
accepts_nested_attributes_for how, example
I have following tables with following models: users(id, role_id) *has_many :entries* categories(id, category_name) *has_many :entries* entries(id, category_id, user_id) *belongs_to :user, belongs_to :category, has_one :storage* storages(id, title, content, entry_id)* belongs_to :entry*, *has_one :vote* votes(id, count, storage_id) *belongs_to :storage* Now,