similar to: Forms and one-to-one association

Displaying 20 results from an estimated 2000 matches similar to: "Forms and one-to-one association"

2006 Feb 17
0
Problem with string "merging" / escaping
I''m on Mac OS 10.4.3, Ruby 1.8.2, Rails 1.0, MySQL 5, SaltedHashLoginGenerator and I''m seeing a strange problem where sometimes generated HTML isn''t quite correct, in the following way: My code: <%= datetime_select :event, :meet_at, :start_year => 2006 %> Generated code: <select name="event[meet_at(1i)]"> ["<option
2006 Feb 19
2
Another "escaping" problem
Ruby 1.8.2, edge Rails (and 1.0), Mac OS X 10.4.3. Here''s the SQL that gets generated for an eager load: SELECT events.`id` AS t1_r0, events.`user_id` AS t1_r1, addresses.`id` AS t0_r0, events.`name` AS t1_r2, addresses.`name` AS t0_r1, events.`meet_at` AS t1_r3, addresses.`phone_number` AS t0_r2, events.`created_at` AS t1_r4, addresses.`phone_service` AS t0_r3, events.`location_id`
2006 May 23
11
New "made with Rails" site launched: www.invitika.com
We''ve finally finished up work on our application and are now beginning our beta. The site (SMS+mobile blogging+event planning+LBS+photos) is built using 100% Ruby on Rails. Many thanks to all the people who answered questions over the months on this list. Our experience with Rails was overwhelmingly positive! We''d love to hear any feedback you might have:
2002 Jun 27
4
Minimum cpu requirements
Hello folks Anyone know if this would be enough to decode oggs? AMD Elan SC520 133 MHz If not, what seems to be the lower limit required for decoding oggs? Many thanks, Kerry. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only
2008 Jul 14
3
[BUG] boot failure since syslinux-3.00
Hi, This AMD Elan board seems to be very problematic: http://www.embeddedarm.com/products/board-detail.php?product=TS-5500 I'm having various issues with booting recent Linux kernels with syslinux. syslinux-2.13 was the last version that worked and since syslinux-3.00 it doesn't work. When it doesn't work all I get is "Boot failed" from the bootsector. Since the obvious
2006 Jan 03
6
Am I going too far or Rails is just confusing? was {validates_presence_of *_id attributes}
Thanks for the input Blair Zajac and Chris (Nolan and Hall), and for others. If all of you have time, please follow this (the question still relates to the previous posts by me): I have provided full steps to reproduce the symptoms. If it matters, I''m running Ruby 1.8.2, Rails 1.0, and MySQL 5.0.15 on Windows XP Professional. 1. First, the setup MySQL ----- create database testdb;
2008 Feb 05
5
how can my model reference a helper?
I know, I know, they''re not allowed to. But here''s my problem. I''ve got a really simple model with two fields, name and price, which I want to show in a form select drop-down. "collection_select" takes a ''text_method'' parameter, which is the method in the model that gets its value placed in the <option> tag. Because I want to show both
2006 Jan 26
1
Simple question about :list method in scaffolds
The automatically generated scaffolds made code like this: def list @address_pages, @addresses = paginate :addresses, :per_page => 10 end which was fine, but I only want to return the logged-in user''s addresses. So I changed it to: def list @address_pages, @addresses = paginate :addresses, :per_page => 10, :conditions => [''user_id = ?'',
2005 Jul 01
2
Whither Goest Wine?
It seems that fewer and fewer favorite programs run with wine. Stuff that ran 100% on older builds crashes out on the newer ones with elan. There needs to be (more) regression testing. However, damage has already been done and propagated and needs correction simply to get back to the previous level of operability.
2020 Oct 11
1
[Bug 14529] New: Please add option to save metadata to single file to speed up backups
https://bugzilla.samba.org/show_bug.cgi?id=14529 Bug ID: 14529 Summary: Please add option to save metadata to single file to speed up backups Product: rsync Version: 3.2.0 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: core
2006 Jul 20
2
using association properties in form helpers
sorry for the noob question: how do i reference an association''s properties in a form helper? e.g. if i wanted to build a select list to choose a user''s address''s state (user.address.state), how would i hook that to the "method" of collection_select collection_select :user, ???, States.find(:all)
2006 Jun 26
2
How can I sort options in a select box?
Pretty much a newbie here, looking for help on select boxes in forms.... Is there any way in the view to sort the options of a drop-down select box? My current code (within a larger _form.rhtml file) is: <div class="form-element"> <label for="asset_location_id">Location</label> <%= select ''asset'', ''location_id'',
2006 Aug 02
2
many-to-one relationship, do I need a second table?
Ok, to keep things short. Im wondering if I need a secondary relationship table to handle my many-to-one relationships. Here is an example of what I''ve written down. For instance say I want to find all of the people in a given location. class Location < AR:Base has_many :people end class Person < AR:Base belongs_to :location end My SQL tables look like: CREATE TABLE
2018 Dec 21
2
Cómo buscar patrones de comportamiento en datos temporales?
Buenas, Estoy intentando hacer un trabajo con una compañera, a la que le pedí que me lo explicara en unas lineas. Esas lineas son las que siguen: Quisieramos analizar algunos comportamientos humanos a lo largo del tiempo; esto es, encontrar patrones de en algunos comportamientos del habla y la comunicación: vocalizaciones, gestos (divididos en categorías), mirada (en categorías). Conocemos un
2008 Jan 15
19
How do you make an MGS/OSS listen on 2 NICs?
I am running on CentOS 5 distribution without adding any updates from CentOS. I am using the lustre 1.6.4.1 kernel and software. I have two NICs that run though different switches. I have the lustre options in my modprobe.conf to look like this: options lnet networks=tcp0(eth1,eth0) My MGS seems to be only listening on the first interface however. When I try and ping the 1st interface (eth1)
2010 Jan 31
1
Booting Embedded x86 - Looking for Information
Hi All, I have a custom x86 board (using the AMD SC520 Elan CPU) which I am trying to get Linux running on. This is a true embedded board, not a mini PC / PC-on-a-chip arrangement. It has no disk drives (only DRAM , NOR Flash, some battery backed SRAM, a couple of Realtek 8100B Ethernet chips, LEDs, Hex Switches etc) I chose to use U-Boot as the bootloader as it claimed to already have x86
2006 Mar 16
4
Table Relationships Problems.
I have the following tables setup: locations :id :name systemmessages :id :name systemmessage_validtimes :id :name :systemmessage_id :location_id :start :end The systemmessage_validtimes has a ''has_many'' relationship with systemmessages, meaning that there could be many valid times for each system message. @systemMessage = Systemmessage.find(1) E.g. I
2006 Apr 19
1
AJAX - update item forms problem
I have a table showing some records from the database. These records should be always ordered by some datetime field. The list of items is changed by AJAX using RJS scripts and edits are done by showing and hiding an update form under a chosen row. Adding and updating rows works great but my problem is when the order of items is changed after making some AJAX datetime updates update forms of
2007 Nov 12
8
More failover issues
In 1.6.0, when creating a MDT, you could specify multiple --mgsnode options and it would failover between them. 1.6.3 only seems to take the last one and --mgsnode=192.168.1.252 at o2ib:192.168.1.253 at o2ib doesn''t seem to failover to the other node. Any ideas how to get around this? Robert Robert LeBlanc College of Life Sciences Computer Support Brigham Young University leblanc at
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
Hi All In my project I am to take date of birth from user so I used datetime_select. It renders three selection boxes, year, month and day. But I want order as day, month and year. I added :order option for datetime_select, it renders normal selection boxes with order year, month and day. Why :order does not work with datetime_select? see my following code <%= datetime_select(:user2,