similar to: Rails theory question, where to put a join query

Displaying 20 results from an estimated 600 matches similar to: "Rails theory question, where to put a join query"

2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on netfirms.com. I was perusing their knowledge base and I came upon a quick-start for something called Ruby on Rails. Since then I have immersed myself in RoR. I''ve done the tutorials, I''ve purchased the books. But, I could never get even a sample RoR app to work on netfirms. 500 server errors.
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2004 Sep 22
8
Digium Hardware
Hi, Has anybody had any problems getting digium hardware lately? Regards Greg Cirino ___________________________________ Cirelle Enterprises Inc. 603-425-2221 www.cirelle.com Website Design www.cirelle.net ProSpeed High Speed Dial-up - 5 Times Faster www.cedata.com Web, FTP, Email Hosting Services www.mlsbot.com MLS IDX Services When You Want It Done Well, Just Call Cirelle It's not just a
2005 Apr 15
2
Newbie question
Hola! I''m trying to follow the User Manual''s example on how to run ttylinux on xen and failing. # xm create ttylinux-xen.cf -c Using config file "ttylinux-xen.cf". Started domain ttylinux, console on port 9604 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Linux version 2.6.11-xenU (horape@elanor.compendium.net.ar) (gcc version 3.3.5 (Debian 1:3.3.5-3)) #1 Thu
2006 Jun 23
2
Foreign key - relations
Hello, I''ve got DB like this: (roughly) create table projects ( id int auto blabla, name varchar(200), user_id int, sales_id int); create table users ( id int auto.., name varchar(50)); So project.user_id has a foreign key to user.id - all is good. Everything works fine. Now my question.. How can set a relationship from two different fields to the users table ?? Fx.
2004 Aug 02
1
help with digium E1 card
Hola! I've a Digium E1 card, zaptel recognizes it as (loading the module with debug=1) Setting up DMA (write/read = 321b2000/321b2200) Controller version: 43 Framer: DS21554, Revision: 5 (E1) Found a Wildcard: Digium Wildcard E100P E1/PRA Using CCS/HDB3 coding/framing with CRC4 120 Ohms Calling startup (flags is 4099) Started DMA Got interrupt: 0x0005 /etc/zaptel.conf:
2006 Aug 14
3
Rails on Linux with a MS SQL Database
So, does anyone know much about getting rails (on Linux) to talk to mssql? There is a mssql driver, but it only works in Windows. A site said that using ODBC might be an option, but I didn''t see a specific ODBC driver for rails mentioned. The nix machine runs php and it can connect to the mssql db just fine, I don''t recall if it was using ODBC or free TDS though. I hoped
2004 Aug 06
3
E1 monochannel :-(
Hola! I'm using asterisk as H.323 -> PRI gateway. First call goes thru ok, second concurrent call fails with: Aug 6 11:52:30 DEBUG[737292]: chan_h323.c:1038 setup_incoming_call: Sending to context [ip2pri] -- Executing Dial("H323/ip$192.168.32.25:60271/984", "Zap/1/9541163107100") in new stack Aug 6 11:52:30 NOTICE[753677]: app_dial.c:554 dial_exec: Unable to
2006 Jun 26
5
using application_helper.rb
I have a simple Yes/No selection list that I am using in a number of places. Thinking that I could DRY things out a bit, I added it to application_helper.rb ... YES_NO = [ [ "Yes", true ], [ "No", false ] ].freeze So I figured I would use it there instead of in each model.rb where needed. anyway, in webrick screen, I am continually seeing this...
2004 Aug 04
4
Problems with E100P
Hi, I'm having trouble configuring and E1 link , I know the E1 is a PRI and the switchtype is 5ess. The problem is that everytime I try to dial I got and error saying that it was unable to open the zap channel . Devices are created in the /dev/zap directory and I can open them with a cat /dev/zap/1. I can also see the channels in /proc/zaptel/1. Thanks in advance [zaptel.conf]
2005 Jun 24
9
WINS across two networks and a router
 Hello, everybody.  This one''s got me stumped.  What I''m trying to do is have two networks--192.168.1.0 and 192.168.2.0--with SMB and WINS running between them.  So far I can mount SMB shares allright, but I can''t browse by WINS names across the router.  I''ve posted this question on Linuxquestions.org; you''ll find the details there.  Here are my
2010 Nov 25
4
Incoming calls through SS7 for data modem transmissions - possible??
Hello, We are working on implementing a solution for a medium service provider. They were previously using a Cisco AS5300 gateway with some PRI trunks to receive modem calls, then route them out the Internet. The Telco they were buying the trunks to discovered this configuration and restricted them due to legal conventions, and stated that in order to continue doing this, they would have to talk
2010 Oct 21
2
In-memory databases vs PHP Bindings
I can't quite connect the dots on this, perhaps someone can help. I'm simply trying to create an in-memory database comprising a single document, so that I can run a load of queries against it and see if any of them match the new document (this is to enable users to have 'subscriptions' to saved searches and be alerted every time a new item is published that matches their
2006 Aug 16
5
Dreamhost FastCGI: incomplete headers (0 bytes) errors
Sorry to trouble the list with another Dreamhost problem, but looking through the archives I see nothing that can solve my problem. I have installed my app as per http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Quick_Start_Guide_August_2006 with a symbolic link from my_domain.tld in ~/ to ~/apps/residence/public/ I get the Rails welcome screen. I have uploaded my app directory etc, and
2005 Aug 03
2
The Next Guide Will Be...
The Next Guide Will Be... August 3rd, 2005 The next guide on Sambadmin will about creating a great LDAP infrastructure. I have been disappointed that I have only received two comments about what the next guide should be, especially since the site has had over 500 visitors in the past two days. I came to this decision after reading my posts. I stated that the core motivation behind all of this is
2006 Aug 18
2
Please help with subclipse in radrails
I''ve been wrestling with this all night, I''m hoping someone can help. I followed the exact steps in: http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion ..but when I open a new ''Checkout project from SVN'' in RadRails, it opens up the second level dirs as the project dirs (ie. app, log, script, etc), leaving me with a mess of projects. I redid
2003 Apr 13
1
torisa rev b
?Hola! torisa.c (from zaptel 0.50) says: #define MASTERVAL 0x41 /* Enable E1 master clock on Rev. B board */ Does that mean that there is a torisa revB? If so, are the schematics downloadable from somewhere? (www.zapatatelephony.org only has Rev. A ones) Does the Rev. A support E1? (just changing the DS2151 for DS2153, the DS crystal and closing the E1 jumpers, or something else is
2006 Oct 20
2
Rails & IIS
There are several sites I''ve found on the web detailing how to setup IIS with Rails. Unfortunately they all seem to be woefully out of date. I believe they may all even be pre Rails 1.0. Can single sign on via Active Directory Services be accomplished through mod_NTLM for Apache, so users won''t have ot log into the intranet site after already having logged into their machine?
2008 Jan 15
7
PHP indexing, what's the PHP method for indexscript
Currently I have the following indexscript: pid : unique=Q boolean=Q field=pid postdate : field=startdate author_name: unhtml boolean=XAUTHORNAME field=author author_id: boolean=XAUTHORID field=authorid url : field=url sample : weight=1 index field=sample How can I create the same indexing using PHP? With this, I can get an searchable index, but I have no idea how to set the fields, so that I
2002 Jan 01
3
Easier OggDrop version
Hi. I think that the vorbis team should use this version of OggDrop RC3 as the official OggDrop RC3, because the menu interface is easier to use (& you can see what kind of mode you have chosen). http://www.inf.ufpr.br/~rja00/BQoggdropC1.zip See this thread for more info: http://www.hydrogenaudio.org/forums/showthread.php?s=&postid=4683 <p>I only have one problem now: what