similar to: Deleting from a 'has_many' collection doesn't set the foreign key to NULL

Displaying 20 results from an estimated 100 matches similar to: "Deleting from a 'has_many' collection doesn't set the foreign key to NULL"

2005 Sep 14
9
Sending Emails via Cron
I''m developing an application using RoR that will generate enough email notifications that I don''t want them in the actual web application. So, I''m thinking about having an outgoing queue that a cron job would pick up and deliver. My question is if this is possible with a ruby script that uses ActiveRecord and ActiveMailer?
2010 Aug 03
1
Dsync fatal error.
#dsync -D -vv -u stak at nti.uff.br mirror maildir:/CX4/vdomains/ nti.uff.br/stak/mail dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace) My mail.conf *mail_location = mbox:/CX4/vdomains/%d/home/%n/mail:INBOX=/CX4/vdomains/%d/var/spool/mail/%n:INDEX=/tmp/imap-index/%d/%n *What that error means ? Before when i
2005 Oct 19
4
ER strikes back
Hi Railers, A long, long, time ago, i made a Framework/CMS in php. There were two core models: Content and Content_type. Content_type was only a list of content types (as expected): new, article, etc. Content_type was not mandatory, but it allowed later to "deactivate" types of contents, for example. So then Content stored the common attributes/properties between the different content
2005 May 29
1
Disabling logging for web service calls?
I''m using ActionWebService to allow users to upload files to my rails app. I do this by encoding to Base64. The problem with this is that rails logs the file data so my log file size spirals out of control. Is there any way to selectively disable logging when the web api is invoked? ActiveRecord::Base.silence doesn''t seem too useful here as it''s only called AFTER
2005 Jun 03
1
sorting on a habtm relationship
I have two tables ("products" and "categories") that have a has_and_belongs_to_many relationship, and I need to be able to arbitrarily sort products in the scope of a category using something like acts_as_list. Problem is, since each product can belong to multiple categories, it doesn''t work to use acts_as_list and have the "position" field be in the
2005 Jul 06
4
Rails Community Site Hacked
http://wiki.rubyonrails.com/rails/show/HomePage Now sure if anyone has noticed yet, but the above page has been hacked.
2007 Aug 29
2
:order based on an aggregate value?
Hi all, I''m building an app where each :referral has_many :sales. In a list of all referrals, I''m displaying referral.date, referral.other_details, and also referral.sales.count. I want to able to sort this list by that last column -- the number of sales per referral. Abstractly, I want to do something like @referrals=Referral.find(:all, :order=>sales.count_all). But
2010 Sep 02
5
Starting Ubuntu 10.04 on XCP
Hello, I’m having difficulty to starting Ubuntu 10.04 virtual machine with XCP 0.5.0. I put 3 files (vmlinuz, initrd.gz, xm-debian.cfg) in the same place under the unpacked ISO tree but when I start the VM, the following error is returned: # xe vm-install template="Ubuntu Lucid Lynx 10.04 (32-bit)" new-name-label=Teste other-config-install-repository=nfs:10.0.0.3:
2005 Apr 17
14
Leaky Webrick (?) & image corruption
Hi guys, After a few days of webrick seeming to use up a ton of ram (the longer it was running, the more ram); izayoi on #rubyonrails kindly suggested changing Dependencies.mechanism in development.rb to :require which appears to have fixed the prob - at the expense of having to restart webrick after making changes to .rb files. Is this a known issue, or is there an alternative solution?
2008 May 08
0
On 'Back' button of browser, drop down doesn't get refreshed
Hey guys, i have a drop down in my UI, which value gets filled by session[:sale]. <%= select_tag :sale_id, options_for_select([["Select Sale", "0"]] + @sales.collect { |s| [s.name, s.name] }, selected = session[:saleid]), { :id => "sale_id", :onchange => "search_verify();" } %> I have a post on, ''onchange'' event of it. if i
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers, I used to develop with a local out-of-the-box Apache and load times were pretty slow (like a few seconds each page). "Well, it''s the price to pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I installed SCGI, and now I''ve got the best of both worlds: rails development env uses my very latest modifications, while SCGI ensures I
2004 May 13
1
Bandwith especification.
Hi, If I have a DSL router with 300kpbs upload bandwith: Linux(eth0) ---(100Mbps)---> DSL ---(300kbps)---> INTERNET Which is the recomended value I must set in my QoS setup for the maximum outbound bandwith of my ethernet interface ? The max of 300kbps or something less like 290kbps ? Especify less than the maximum available bandwith is advisable to ensure that the QoS algoritms goes
2009 May 27
4
Sale, pop and product
Hi, I couldn''t find a better word for pop, but let''s go: There are 3 models: sale, pop and product sale: -total:integer pop: -quantity:integer -discount:float product: -name:string -price:float A sale can have many different products, each one has a quantity and discount associated. So each sale has_many :products through => pops And each product has_many :sales
2005 Jun 06
14
Handling Images And Rails
On my website people will be able to upload images of themselves. I was wondering how people are presently handling uploading, resizing and optimizing images in Rails? Do you use a specific piece of software to do it? What would you guys recommend? Any code from RailsDay? :-) Also, do you guys store the images in the DB or just as files? What do you suggest? What are the pros and
2004 Aug 06
2
Problem with dual streaming
I've been using liveice to feed an encoded stream to an icecast broadcast server. Now I want to feed two streams at the same time to the broadcast server. To acomplish that I am using a dual soundcard setup in a debian linux server. I've setup two different mountpoints in the icecast server wich will receive the stream and in turn will broadcast the streams to the listeners. This is, the
2006 May 29
1
ANN: Fossilize Plugin - Create Gems of your Applications.
Hello List! I''m glad to announce the update of Rails Plugin Fossilize (0.3.0): Fossilize ========= Allow you distribute your rails application as a Gem. It add a "fossilize" generator and a package task to rake. What it offer ============= Fossilize offer you two ways of using your distributable rails application: * a ''unpack'' method (by default):
2009 Feb 25
0
Volume serial number changes
Hi, How can the volume serial number of a share can be especified in the smb.conf? I have a machine that each times it connects to the share displays two differents volume serial number, not at the same time.... The server uses samba 3.2.5-4 over debian and the disks are in a software raid 1.
2012 Oct 31
0
predict glm() with offset
Dear R friends. I have a question about running a glm( family= 'binomial', *offset=T*), (I know offset is a vector of values) My doubt is about predicting the values on a new data. Does the predict() function considers the offset? o should I especified something? Here is the model I´m using: *model<-stepAIC(glm(f_ocur~altitud+UTM_X+UTM_Y+j_sin+j_cos+temp_res+pp, offset=(log(1/offset))
2004 Nov 27
1
getting TDM400P to work in a system that previously had Voicetronix card
Hi All, I recently installed and compiled Asterisk in a Red Had (enterprise) box with digium TDM400P card installed in it. Thanks to the good documentation available, I was able to install and configure the hardware as well as software. As specified in the Getting Started with Asterisk Guide, I first installed zaptel driver, then libpri and finally Asterisk. All of them successfully compiled, but
2016 Oct 04
2
especify a DN by using ldbsearch
Hi @ll: I need to get the objectClass of some objects by giving theirs DistinguishedNames. I've try with this: #ldbsearch -H 127.0.0.1 dn='CN=nameTest,CN=Users,DC=example,DC=com' But: # returned 3 records # 0 entries # 3 referrals Any idea? How Can I to specify a DN in ldbsearch command. Thanks. ___________________________________________ Felipe_ González_Santiago The