similar to: Dealing with collections of model objects

Displaying 20 results from an estimated 100 matches similar to: "Dealing with collections of model objects"

2006 Apr 24
4
Does Rails need more useful form helpers?
I have been using rails professionally for only a month and a half now, but I am continually running into problems with form helpers and accessing multiple objects on a single page. To whit: 1. While text_field and text_area and such all support the :index option, the select helper does not. 2. When appending the text ''[]'' to a helper''s object name, the id is
2006 Dec 01
2
more_like_this not working?
Hi all, using ferret 0.10.13 and aaf trunk, i cannot get more_like_this to work. I read other posts on this forum related to that, but that did not solve it. I have a model Question with a field question_text. I do: ----------------------------------------------- >> q = Question.find(:first) >> q.more_like_this NoMethodError: You have a nil object when you didn''t expect
2006 Mar 15
7
Populating text_tag with serialized data
I am using a serialized attribute in one of my models The serialized data is in the form of an array. I want to have a text_tag for each element contained in my serialized attribute. How would I construct the text_tag? My model name is ''questions''. The serialized attribute is "answers" So I might have: <% form tag %> <% text_tag ''question'',
2006 Mar 16
0
validating presence of a tag
Hi, I''m using acts_as_taggable. I have a form that asks for a question and a tag for that question, something like: <% form_tag -%> <%= text_area("question", "question_text") %> <%= text_field("tag", "name") %> <%= submit_tag %> <% end_form_tag %> The question is one model. Tag is another. My problem is that I
2019 Apr 11
1
[Qemu-devel] [PATCH v5 1/6] libnvdimm: nd_region flush callback support
On Thu, Apr 11, 2019 at 9:02 AM Pankaj Gupta <pagupta at redhat.com> wrote: > > > > > > > > > This patch adds functionality to perform flush from guest > > > to host over VIRTIO. We are registering a callback based > > > on 'nd_region' type. virtio_pmem driver requires this special > > > flush function. For rest of the region
2019 Apr 11
0
[Qemu-devel] [PATCH v5 1/6] libnvdimm: nd_region flush callback support
> > > > This patch adds functionality to perform flush from guest > > to host over VIRTIO. We are registering a callback based > > on 'nd_region' type. virtio_pmem driver requires this special > > flush function. For rest of the region types we are registering > > existing flush function. Report error returned by host fsync > > failure to
2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
Have created sample sinatra cucumber app as suggested on wiki. Tried both env.rb configurations from there and aslaks git repo. With this combination of gems I get the following error doing basic cuc tests When I visit ''/foo'' # features/step_definitions/general.rb:1 PATH_INFO must start with / (Rack::Lint::LintError)
2019 Apr 11
4
[PATCH v5 1/6] libnvdimm: nd_region flush callback support
On Tue, Apr 9, 2019 at 9:09 PM Pankaj Gupta <pagupta at redhat.com> wrote: > > This patch adds functionality to perform flush from guest > to host over VIRTIO. We are registering a callback based > on 'nd_region' type. virtio_pmem driver requires this special > flush function. For rest of the region types we are registering > existing flush function. Report error
2019 Apr 11
4
[PATCH v5 1/6] libnvdimm: nd_region flush callback support
On Tue, Apr 9, 2019 at 9:09 PM Pankaj Gupta <pagupta at redhat.com> wrote: > > This patch adds functionality to perform flush from guest > to host over VIRTIO. We are registering a callback based > on 'nd_region' type. virtio_pmem driver requires this special > flush function. For rest of the region types we are registering > existing flush function. Report error
2008 Jun 18
2
Trouble brewing in dmesg... any ideas?
Hello fellow listers! I've got some errors starting to crop up on one of my CentOS5 boxes. Below is a transcript: vi S 048C664F 2600 4176 2837 (NOTLB) f1c87b68 00000082 c30229e0 048c664f 00000e65 f1c87b18 00000007 f7bacaa0 f7d97aa0 048c72fc 00000e65 00000cad 00000003 f7bacbac c302a9e0 c042daae f7d20000 f1c87b70 00000286 ffffffff 00000000
2006 Jan 09
0
Adding multiple input boxes having unique ids
Hi, I can''t figure out how to set a unique id or name for multiple new input boxes. If I have a todo list and want to add another task input box via a "add task" link, I can assign a unique name and id for the first new one I had with the following: <!-- picked up and placed within wrong_answers_container when Add Another Answer is clicked --> <div
2011 Mar 28
0
Token Poken :( I'm stuck with this
Hay all! I have question-answer base.. like quiz, yeah? yes! So i need to do this way... my project without registration so this way i need token.. user can answer on my question only once.. How can i do this? Iand i can give him link, and link should be like : localhost:3000/token .. he gets on this link, answer and click go and that''s all. If he want to get on this page once again he
2001 Jan 19
2
building ext3 as a module
When trying to build ext3 as a module, I get the follwing errors during the kernel link: /usr/bin/kgcc -D__KERNEL__ -I/home/brian/src/kernel-2.2.19-pre6mvd/linux-2.2.19pre6-kdb-ext3/include -c -o dummy_sym.o dummy_sym.c ld -m elf_i386 -T /home/brian/src/kernel-2.2.19-pre6mvd/linux-2.2.19pre6-kdb-ext3/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_t ask.o -Map map
2011 Dec 28
3
Btrfs: blocked for more than 120 seconds, made worse by 3.2 rc7
Hello all: I have two machines with btrfs, that give me the "blocked for more than 120 seconds" message. After that I cannot write anything to disk, i am unable to unmount the btrfs filesystem and i can only reboot with sysrq-trigger. It always happens when i write many files with rsync over network. When i used 3.2rc6 it happened randomly on both machines after 50-500gb of writes.
2012 Feb 20
4
Workarounds for Splinter Cell: Conviction
Hi I've been able to get Splinter Cell: Conviction running quite smooth on my system, and I just want to share with any others what I had to do to get it all working. A few days ago, I submitted a testreport in AppDB, but it was rejected with the info that I was testing a patched version of wine. Which is true, because vanilla wine just crashes with the exception as tested by other people.
2006 Jul 06
0
Using in_place_editor_field for collections?
I am trying to use in_place_editor_field to make many objects editable at the same time. I think I solved the first step of this problem; before it was giving me a problem about referencing a nil, so I did this: <%= in_place_editor_field ''question[]'', :name %> adding the [] seemed to fix things. Now all the fields show up on the page and they are all clickable. But
2006 Jul 19
0
Clearing dependent collections
I have a user model that owns messages : class User < ActiveRecord::Base has_many :messages , :dependent => :nullify end I''m using nullify so that when the user is deleted, the messages continue to exist - they''re just marked as being ownerless. However, calling user.messages.clear actually deletes all his messages, which I was a little surprised at. I would
2006 Jul 20
0
Getting joined collections on a form
Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very messy. I have a one to many relationship between Customer and Addresses, each customer has one or more
2006 Jun 04
2
Manipulating collections
I appreciate this is basic stuff but can''t seem to find the answer anywhere using Google. If someone could point me in the direction of some documentation on this I would be very appreciative. If I have a collection as follows: @stuff = Stuff.find_by_type(''new'') And I then want to add something onto it, how can I add to this collection? Additionally how could I go
2006 Jun 12
0
Realtime form validation for forms containing collections
Hi, I''m successfully using the realtime_form_validation plugin from http://railsrtv.rubyforge.org/ However, my forms contain collections, as described in the AWDWR book. Basically my form looks like this. 2004 2005 2006 Question 1 12 13 15 Question 2 9 11 13 I have the following code to generate ids for my input fields.