similar to: has_many with different primary key

Displaying 20 results from an estimated 2000 matches similar to: "has_many with different primary key"

2006 Jun 27
3
Decoding Unicode URLs Properly
Please help, I have an application I switched over to UTF-8, but I am unable to decode URLs with unicode characters in them properly. For instance, if I have "item=Pur%E9ed" as a parameter in my url, when it''s decoded by rails, it returns "Pur?ed" and not "Pur?ed". Is there an easy way to fix my controller to accept these characters properly?
2006 Sep 29
5
Request URI Length Override
Please help, Does anyone know how to override the Mongrel request URI limits built in? I know it was set at a 512 byte limit, but my application will not work with this in place. Why do I need a larger limit? I''ve written a rails application that uses a bookmarklet to send large amounts of data from site to site. The only way to do this is (and keep it cross browser
2006 May 24
2
OSX Rails Session Issues
Hey friends, I need a little assistance getting one of my applications running on OSX. I am able to install everything, and get my application running, but when I try to store an object in the session in one of my apps, the session object doesn''t get stored. I tried running webrick, and I tried running under lighttpd. I tried running a regular session store, and a mysql
2007 Feb 19
2
Acts_As_Ferret Tutorial
Hey guys, I wanted to share with you guys a detailed tutorial I just finished this weekend for using Acts_As_Ferret. http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial I started using Ferret and Acts_As_Ferret a few weeks ago, and I learned so much that I wanted to give back to the community by writing up a helpful tutorial that covers all the key topics in one
2006 May 02
2
Converting from UTF8 to ISO-8859-1 encoding
Please help, I have followed the rails wiki to convert my rails application to use UTF-8: http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings I am able to succesfully cut and paste Unicode characters from other page, successfully store and display unicode characters. However, my client actually wants ISO-8859-1 encoding, which I''m coming to realize is somehow
2008 Jul 17
2
We ain''t got no RSpec
Hey Guys, This last week on the Rails Envy Podcast we received an "interesting" voicemail. Jason encouraged me to make a remix, and I think you guys will appreciate what resulted. If you have a few minutes and need a good laugh, see here for the voicemail and the remix: http://www.railsenvy.com/2008/7/17/we-aint-got-no-rspec -Gregg -- Posted via http://www.ruby-forum.com/.
2007 Feb 03
2
Boost Sorting with Acts_as_ferret?
Hey guys, Simple question here. I have a single index of recipes, from which I''m looking at the following fields: Name, Ingredient Text, Tags, and Description. The key is, I want to show all the results that come from Name, before I show any of the results from Ingredient Text, Tags, or Description. I tried doing this: acts_as_ferret :fields => { :name =>
2015 Apr 07
5
Asterisk Inbound calls, multiple SIP accounts, calledID
Hi Dmitriy and others and thanks for your help so far. The option "match_auth_username=yes" seems to have had no effect. From my reading, this option will try to match the username of the incoming SIP account to a section heading. If that is how it must work then i can see a big problem. I'm trying to present the receptionist with a nice display of which line the call came in on.
2008 Jul 17
5
.build method
I have gone to the api and have searched the internet and looked through the books that I have, but I am having trouble finding an explanation on what the .build method actually does and how it is used. I guess the best example is if I want to create a todo list application where I can create a new todo list and add to do items all at the same time. I would post to the todolist controller to
2008 Jul 25
2
Strange checkpassword issue
I'm helping a friend setup a small mailserver using dovecot, and I'm finding a strange problem with checkpasswd that I haven't had on my servers. How is the following debug output even possible? Jul 25 12:12:20 company2 dovecot: auth(default): master out: USER 5 joe home=/var/mail/joe.com/joe/Maildir/ uid=1005 gid=1005 Jul 25 12:12:20 company2 dovecot:
2004 Nov 27
4
very newbie question
Hi everyone! I have very simple question, how to limit SIP phone user making calls to for example longdistant calls? Maybe: Put in his context in sip.conf context which don't provide possibility to make such calls? Is it correct? thanks for any help, regards, Corvin
2007 Jan 30
3
Export ZFS over NFS ?
I''ve got my first server deployment with ZFS. Consolidating a pair of other file servers that used to have a dozen or so NFS exports in /etc/dfs/dfstab similar to; /export/solaris/images /export/tools /export/ws ..... and so on.... For the new server, I have one large zfs pool; -bash-3.00# df -hl bigpool 16T 1.5T 15T 10% /export that I am starting to
2005 Sep 21
4
How to retrieve voicemail from an IP phone?
Hi, How can I retrieve those voicemails using my ip phone? and how will i confiugre it on asterisk? Please help I'm very new in asterisk. Thanks, -- Ryan Pagquil Infodyne Inc. - PhilOnline.com 3603 Antel Global Corporate Center Do?a Julia Vargas Ave. Ortigas Center Pasig City Tel: 687-0715 Web: www.philonline.com
2008 Aug 20
15
CF to SATA adapters for boot device
Has anyone here had any luck using a CF to SATA adapter? I''ve just tried an Addonics ADSACFW CF to SATA adaptor with an 8GB card that I wanted to use for a boot pool and even though the BIOS reports the disk, Solaris B95 (or the installer) doesn''t see it. I might give the IDE version a go (I really wanted hoT-plug), otherwise I''ll be able to store a couple of thousand
2007 Mar 05
3
Rbind with data frames -- column names question
As part of my work, I am trying to append matrices onto data frames. Naively I assumed that when rbinding a data.frame and matrix, the matrix would be coerced and appended, keeping the names from the data frame. Clearly, I am not fully understanding the process by which rbind works. Example code: > A<-data.frame(1,1,1); names(A)=letters[1:3] ; B<-matrix(0,2,3) > rbind(A,B)
2015 Apr 01
4
Asterisk Inbound calls, multiple SIP accounts, calledID
Hello all, I have an Asterisk server (Asterisk 10.12.4) with multiple sip accounts with the same service provides. We have 8 phone numbers in total. Incoming calls from the public are all correctly directed to appropriate office handsets. However, the display on the reception phone (the only one i care about) is always showing the same "SIP/Account1_0843214321" rather than the account
2004 Apr 03
7
Few question on HTB
Dear All, Sorry to trouble again..... After go through www.lartc.org I have implemented the HTB instead of CBQ for the same scenario. Now following files are under /etc/sysconfig/htb directory. eth0 DEFAULT=30 R2Q=10 eth0-2.root RATE=256kbps BURST=25k eth0-2:10.comp1 RATE=120kbps BURST=12k PRIO=0 LEAF=sfq RULE=192.168.200.0/24 eth0-2:20.comp2
2002 Aug 26
3
Question about memdisk
Peter, I am trying to get memdisk to work with grub and have run into a problem. Grub loads memdisk into the 0x9000 segment and then starts it at location 0x90200. I run into problems in the first printf statement. It turns out that printf uses a switch statement that compiles into a jump table. When I reach this jump table, I believe the code is jumping into hyperspace due to the jump table
2005 Nov 18
6
expected system load from DTrace scripts/probes
Does anyone out there have any thoughts on the type of load common DTrace scripts would cause on a system if run 24x7? I know "common DTrace scripts" and their underlining probe calls a vague statement. So for the lack of a common and establish set of scripts in the OS, I''ll use the most popular right for my question...the DTraceToolkit from Brendan Gregg. Which by the
2003 Apr 10
12
Asterisk-Redhat 9 install guide.
Hi, Not sure if anyone will be intersted but I have put together an install guide for Asterisk on RedHat 9.. Its nothing special but it may be of use to the newbies.. Like me.. If you would like a copy let me know and I will send it to you.. later.. -- ______________________________________________ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze