similar to: Saving habtm relationships and Rails 1.0

Displaying 20 results from an estimated 1000 matches similar to: "Saving habtm relationships and Rails 1.0"

2006 Jul 18
4
Some basic questions
Hi, David and everyone, I''ve had Ferret running fine in a production Rails application for a while now. I haven''t updated Ferret or really looked at the Ferret-related code since probably January, but I recently started thinking about trying out the latest version (we were using 0.3.2, I think). I got the latest (0.9.4) and have noticed things break. In particular, I used to
2006 Feb 17
7
FCGI hanging w/ lighttpd and RoR 1.0 (need to kill -9)
Hi, everyone, I''m currently running a Rails 1.0 project using lighttpd-1.4.9 behind Apache 2 on RHEL 3. My fcgi process (I''m only using one right now) always hangs after some time, which is something I haven''t experienced before (e.g., I''ve run this same app. on a TextDrive account and it works fine there). So ... any ideas on what could be causing this?
2001 Nov 28
2
Can't connect from Windows 2000
I recently upgraded my Linux install (Debian potato to woody) and now Samba is no longer playing nice with Windows 2000. I can use smbclient on the samba machine to connect to itself, so at least that's working. The error from Windows is: "The semaphore timeout period has expired.". I deleted the smb.log file at one point in an effort to reset it. I figured it'd be created
2006 Mar 15
3
Special characters in ERB
I''m pulling text out of a database that contains special characters, like the trademark sign. For example, a typical string might be like this: string_from_database => "Some Special Brand\231 is for sale this Thursday through Friday." The \231 is the trademark sign (TM). ERB converts this to question marks. So, my question is -- how can I get it to display the trademark
2006 Mar 28
3
(slightly OT) Reporting tools (Jasper, DataVision, etc.)
We''re evaluating reporting tools right now, both open source and closed. I saw that a bunch of people on this list have considered Jasper/iReport -- is this coincidence, or is this the best open source report writer right now? The proprietary tool we''re comparing them to is Crystal Reports. Reports will need to be editable by end users, and they''re running Mac OS
2005 Aug 24
3
Motherboards and IRQs
Someone mentioned earlier (I can't find the message now) that they had a motherboard that allowed you to change IRQ assignments in BIOS. Does anyone happen to know how to identify motherboards that can do this? I'm going to put together a new machine now and I'm having trouble picking a motherboard for it (ordering from Dell or other online vendor is not an option, since I need
2005 Dec 19
2
Parentheses for precedence?
I''m not sure whether this is a bug or whether I''m simply expecting Ferret queries to work in a way other than they''re intended. I notice that if use a query like: (other_text:"Collaborative tools") AND NOT other_text:podcasts I''ll get correct search results. However, if I put parentheses around the second part, like:
2007 Dec 03
5
spec for model_id should eql
Hello, I''m confused why the spec described below is failing. Other simple comparison specs are passing fine for the same model. The code is working accordingly when I test it through the console, I''m just having difficulty getting this spec to work. Any pointers would be appreciated. Failure message: ''Address fetch and geocode should extract department and write to
2006 Jan 30
1
AR load script only loading every other item?
Wow, this one is weird. I''ve got a file with data I want to import, one item per line. When I run this code, only the first, third, fifth, etc items get saved: require ''../app/models/entitlement'' #### Add entitlements f = File.open("../tmp/entitlements.csv") f.each do |line| id, code, description = line.chomp.split(''|'') entitlement =
2006 Jan 11
15
How to use custom url formats?
I''m new to Rails and am trying to use a field called "code" instead of "id" in my URLs. For example, assuming I''ve got a database of motorcycles makes where the codes are "Honda", "Yamaha", "Suzuki", and "Kawasaki", etc. To show the info about Honda I want to use this url: http://www.mysite.com/makes/honda/
2006 Mar 23
8
DRY principle - how to implement?
Hi all! I have ''send_status'' table which looks something like these: id code title 1 sent Sent 2 error Sending error 3 success Success Next I would like to associate some processed records with their ''send_status''. Is it better to use: 1) record.status_id = SendStatus.find(:one, :condition => "code=''sent''").id to
2005 Dec 17
2
Alternative to nested form tags
You can''t nest HTML forms, so I was wondering ... I have an HTML form, and I have one element where I want to use Ajax inside the form (e.g., a pop-up that contains a search box when there are too many items for a selection list) ... how would I accomplish that? If I could use nested form tags, I could put a small, one-field search form inside the larger form. Thanks! Jen
2006 Feb 27
3
form questions
I have a very simple form that looks allows an input for an error code and then give the show page from the scaffolding if the error code is in the database and a notification on the list page, again from the scaffolding if not. Here''s the form: find.rhtml <h1>Find error</h1> <%= start_form_tag :action => ''search''%> <p><label
2005 Aug 25
4
VoIP providers -- California, U.S.
Hi, Just wondering if people could suggest a good VoIP provider that can service the San Francisco Bay Area and the Los Angeles area. I've tried race.com (recommended to me) but they're kind of hard to get ahold of. Any other suggestions? This is for a business, so reliability is key. I did see the recent thread about this, and while I saw a few mentioned, I didn't see anything
2003 Dec 01
0
No subject
The account is not authorized to log in from this station. This is even though I have in smb.conf: hosts allow = 192.168.1. Which should allow the whole subnet. Thanks! Jen ----- Original Message ----- From: "Ahmad Yahya" <getlucky@telkom.net> To: <samba@lists.samba.org> Sent: Sunday, December 02, 2001 10:23 PM Subject: Re: Can't connect from Windows 2000 >
2003 Dec 01
0
No subject
The account is not authorized to log in from this station. This is even though I have in smb.conf: hosts allow = 192.168.1. Which should allow the whole subnet. Thanks! Jen ----- Original Message ----- From: "Ahmad Yahya" <getlucky@telkom.net> To: <samba@lists.samba.org> Sent: Sunday, December 02, 2001 10:23 PM Subject: Re: Can't connect from Windows 2000 >
2005 Aug 22
7
Small office setup/using analog lines w/ Ast erisk
>The Digium cards actually are sharing IRQs with other devices -- the >installer mentioned it could be an issue initially, but when he saw that >the devices that the cards were sharing with were the network card and >the video card, he said to just try and see if it works first. Sounds >like some of the problems that we're having could be related to this, >and it's
2005 Dec 16
10
''Code table'' best practices?
I''ve been going back and forth about this kind of thing for a while. I reverse my opinion on it every project, and I''m wondering if anyone has any advice/battle scars to share. As usual, please forgive my long-windedness in advance. Let''s say I have this: Table: PLANS ID int CATEGORY_CODE_ID int --Other junk removed for clarity Table: CATEGORY_CODES ID int DESCRIPTION
2006 Jan 10
18
Ferret with IMAP dirs
I''d like to use ferret to build an imap indexer and search utility, but want to check first to see if anyone else is working on this and offer my help. Anyone? Also, if you could provide any helpful pointers on indexing directories via ferret, it''ll be very much appreciated. I''m a lucene nuby. Thanks! John -- Posted via http://www.ruby-forum.com/.
2005 Dec 14
4
Fuzzy search on a phrase
I''m trying to use Ferret to do fuzzy searches. If I use fuzzy search for just one word, it works fine: index.search(''name:gogle~0.4'') However, if I try to use a phrase, it doesn''t work: index.search(''name:"gogle search engine"~0.4'') On the other hand, I could do: index.search(''name:gogle~0.4 AND