similar to: Adding ActiveRecord objects to the session

Displaying 20 results from an estimated 100 matches similar to: "Adding ActiveRecord objects to the session"

2006 May 08
4
set forign key
hi, got a small problem below and not to sure how to overcome this using rails two tables involved with this projects and quotes each project has a field quote_id as a forign field. When a user is ready to upload a quote they are linked to quotes/new from the show project page. Once the quote is uploaded how can I then set the quote_id field with the correct key? -- Posted via
2005 Aug 05
1
Is there a right place for a include_once statement in a PHP AGI script?
Hello there, I'm new to PHP AGIs and I'm having problems with a particular script that has a "include_once" statement on it. If I remove that stament, the script runs until the section of the code that depends on the include and then returns. If I include that statement, the script does not seem to run at all. What shall I do? Thanks in advance, Leo
2006 Apr 20
5
strange mysql problem
i have this model: class LineItem < ActiveRecord::Base belongs_to :quote end in the console: >>l = LineItem.create ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , )'' at line 1: INSERT INTO line_items (`qty`, `quote_id`,
2009 May 06
1
WinXP user password not accepted - very strange !!!
Dear friends, I have an Ubuntu 8.04 server fully updated running Samba 3.0.28a. Currently the ubuntu machine acts as a PDC and all clients have joined the domain successfully (clients are all WinXP SP2). The strange thing is only with one user where: If the user logs in with his password all works well. If he restarts or shutdown his machine and tries to relogin the system tells him that his
2006 May 09
7
going crazy!!!!!! ActiveRecord::StatementInvalid in Project
any suggestions on why I am gaining this error. ActiveRecord::StatementInvalid in ProjectsController#create Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , , )'' at line 1: INSERT INTO projects (`name`, `date_created`, `quote_id`, `client_id`, `description`, `user_id`)
2006 Aug 11
0
habtm in a standalone ruby script broken?
Hi, i have a ruby script which uses the activerecord models of my rails application. this is achieved with $LOAD_PATH << ''...../availdb/app/models'' require ''rubygems'' require_gem ''activerecord'' require ''host_downtime'' require ''host_scheduled_downtime'' And in .../app/models/host_downtime.rb: class
2006 Jan 20
11
HABTM relations
Hi, I have 3 tables with HABTM relation. USERS -> QUOTE_TO_USER <- QUOTES Table QUOTE_TO_USER has 3 attributes: quote_id, user_id, component. I have a form where I can tie multiple users to QUOTE. This is easy one, thru "user_ids" (@quote[:user_ids] = @params[:quote][:user_ids]). In this form I have all users and I just check those I want to tie to this quote, however
2006 Apr 18
9
SQL Syntax Errors
Hi, I''m running Rails on Mac OS X 10.4. I''ve installed ruby/gem from darwinports, and then rails through gem. I have a recurring problem where I get an SQL syntax error: Mysql::Error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' at line 1: INSERT INTO
2006 Jan 12
0
indexing for sub items appears to fail after validation failureq
Hi all, I have a table with an associated (has_many) table and a single form to edit the parent that displays the children as well. The associated objects are represented via partials that contain indexed fields like: <%= text_field ''form[]'', ''pages'' %> When there is a validation failure in the "child" form the oddest thing is happening,
2007 Feb 06
0
Call Connections Dropped
We just had the oddest thing happen which worries us as new users. We had 3 calls running on asterisk (one from sip to sip and the other to sip to zap). It seemed for no reason, the connections just dropped and the lines went dead. You couldn't call a phone (not even yourself). Once I restarted asterisk (it gracefully shutdown and started back up), then everything worked again. This concerns
2000 Jun 19
0
Compilation issues on Mac OS X Server 1.2
Majordomo bounces the oddest things. Monty ------- Forwarded Message To: vorbis-dev@xiph.org From: Chris Hanson <cmh@mac.com> Subject: Compilation issues on Mac OS X Server 1.2 Content-Type: text/plain; charset="us-ascii" ; format="flowed" I'm trying to build vorbis on Mac OS X Server 1.2 -- aka powerpc-apple-rhapsody5.6 -- and have had pretty bad luck. But it
2013 Feb 21
0
Odd Error message with rare events logit
I'm running a rare events logit model in R using the Zelig package and am getting some of the oddest error messages that I can't figure out. y = rnorm(100) x = c(rep("0",1), rep("1",99)) d = data.frame(won=x, bid=y) d mod1 <- zelig(y~x, model="relogit", data=d, tau=1/100, case.correct="prior", bias.correct=TRUE, robust=TRUE) > mod1 <-
2006 Aug 12
0
insert into database failing
hi all, i am trying a little project based on the agile book''s shopping cart example and have hit a problem. the inserts are failing when saving a quote which contains line_items. the models are as follows (quote_line_item is using single table inheritance): class Quote < ActiveRecord::Base has_many :quote_line_items end class LineItem < ActiveRecord::Base end class
2006 Jul 20
1
Having issues saving line items to the DB
Hello everyone, I''m fairly new to Rails (writing my first real app) and brand new to this mailing list. I''ve got a rails/sql error I just can''t seem to solve. It''s probably really simple, but I''m been googling and reading for a day and have made zero progress on it. Hopefully someone on this list can shine some light on my problem, or point me in the
2010 Jun 10
2
tuning software echo cancellation
We have been distributing asterisk servers for several years now, and early on decided that hardware echo can was the way to go. Our first few boxes without it had horrid echo problems, and attempts at tuning in 2006 didn't make any difference. We installed a new server yesterday at a client's location with a Rhino 4 port FXO card (HW EC included), and when an inbound call was
2020 Oct 27
0
Looking for a guide to collect all e-mail from the ISP mail server
The reason there's no pretty complete how-to is because what you're doing seems completely insane to the vast majority of people who'd look at your problem and select your way of approaching solving it. Yeah, you can also host your own website off of a DSL line, using a rasp-pi connected via a ham data relay which is faxing pages back and forth over a couple of soup-cans and string -
2006 Jun 13
13
Pass infomation between different views and controllers
Hi, I am a rails and ruby nuby :-) How do you pass data between different controllers and views? I have a page ( a quote) that I am editing url ....quote/edit/6 6 id the current id. I then go to a catalog (url....catalog) to add an item to my quote (I do this via a line_item file that the quote reads) I now want to go back to the quote. I have tried this <%= link_to ''Back to
2020 Oct 27
1
Looking for a guide to collect all e-mail from the ISP mail server
2010 Nov 09
1
dovecot sieve plugin
hi... ?exist some way to extract message body contect to a variable with dovecot sieve plugin? ?:(? it's needed to do something like these: if address :matches ["From"] ["*"] { set "sender" "${0}"; <extract body content> # i try using something like "if body :raw :contains ["*"]" and use ${1} but i cant
2003 Nov 05
1
g.729 codec registration
Hi all, i have purchased the g.729 codec from digium. The registration was successful. (with the "old" binary) But there're a few questions: - should not the codec listed in the codec list when i enter "show codecs" ? - the codec is named with g729b but if i enter show codecs there is a codec g729a listed also the g729b is not installed. what is the difference between