search for: unsaved

Displaying 20 results from an estimated 94 matches for "unsaved".

2008 Apr 23
1
Validation dependent on unsaved parent
I''m having trouble with a validation that depends on an attribute of a belongs_to parent. If the child is added to an unsaved parent (parent.children << new child), the has_many collection parent.children includes the unsaved child. However the belongs_to attribute child.parent appears to be nil until the parent has been saved. Without access to the parent attributes, the validation can''t be done in the chi...
2006 Mar 13
2
relationship woes
...> true ... According to the has_many docs (http://api.rubyonrails.org/classes/ ActiveRecord/Associations/ClassMethods.html#M000471) collection<<(object, ?) - adds one or more objects to the collection by setting their foreign keys to the collection?s primary key. But when I add a new, unsaved PgmVisit to an unsaved PgmUpdate the PgmVisit still has a nil foreign key and no pgm_update to show for. Are the docs failing to mention something about unsaved records? I had similar unpredictable problems with WebObjects which is why I am now learning Rails. A related questing is when is...
2008 Apr 28
1
OSX R GUI visual interface tweak (PR#11318)
Full_Name: Ana Nelson Version: R 2.7.0 GUI 1.24 (5102) OS: OSX 10.5.2 Submission from: (NULL) (213.94.201.89) The R GUI close button has a solid circle. Screenshot is here: http://skitch.com/ananelson/kmxj/r-console On OSX this indicates that there are unsaved changes pending. Please see page 201 of the Apple Human Interface Guidelines (version 2008-03-11): http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/OSXHIGuidelines.pdf However, I never save my workspace on exiting R, therefore I don't really have unsaved chan...
2013 Feb 06
0
inverse_of breaks for unsaved child associations during save of parent
I''m willing to write a patch for this issue: https://github.com/rails/rails/issues/8893 But want to confirm that the new behavior makes sense before I make the effort. Essentially if you have an unsaved parent and child, and the parent''s association to the child has an inverse_of declared on it. When the parent gets saved, it updates the foreign key on the child, and this makes the association stale, breaking the inverse_of connection. It should be pretty easy to fix. Either on the...
2006 Mar 14
2
Two unsaved related objects
Given the two tables Parent, Child where Parent has_many children: If I don''t save parent first then it seems that child.parent will not be assigned automatically if I call parent.children << child . Must the parent record be saved before I call parent.children << child ? If I must save Parent first then can someone explain to me how I can call parent.valid? before it
2007 May 09
6
more_like_this
Hi, I''m using acts_as_ferret in my rails application and I''d like to use more_like_this to retrieve some ''similar'' item suggestions. I have a class ''items'' which has a status field and I need to retrieve items that only have one of the two possible statuses. Looking at the more_like_this method indicates it supports an :append_to_query
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
...orial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s the best approach ? thanks
2006 Mar 28
2
R crashes during 'eigen'
...rash. So, I know a workaround my problem, but still don't understand why R crashes. Could anyone explain this? In case someone wants to download my matrix to see where it goes wrong, it can be downloaded from http://mcs.open.ac.uk/cja235/thematrix (warning: obviously, R might crash so save your unsaved work first). thanks, Casper Albers [[alternative HTML version deleted]]
2003 Jun 03
3
Server overloaded? Or is it a bug?
...one away, or there is some bug in the kernel, or some system table is too small. How do I find out what the problem is? (Never had any before.) FreeBSD has always managed the highest loads, even on normal PC hardware. Is it possible to bring the server back without rebooting? I would lose a lot of unsaved data if I had to reboot. I'm running 4.8-STABLE. Any help would be greatly appreciated. Daniela
2002 Jun 04
2
Scaling on a data.frame
Hey, hopefully there is an easy way to solve my problem. All that i think off is lengthy and clumsy. Given a data.frame d with columns VALUE, FAC1, FAC2, FAC3. Let FAC1 be something like experiment number, so that there are exactly the same number of rows for each level of FAC1 in the data.frame. Now i would like to scale all values according to the center of its experiment. So i can apply s
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/ i don''t think this will work. in postgresql the field ''now'' is pinned to the SAME TIME for the duration of a transaction. eg. if you do begin transaction; insert into t values(42, ''now''); # sleep one minute
2005 Dec 27
4
How do you detect if ActiveRecord ''update'' fails?
...''m updating multiple model objects in one go with something like this in my controller: => Photo.update(params[:photo].keys, params[:photo].values) When the update fails due to validation errors, how do I detect it? The Rails API says: "If the save fails under validations, the unsaved object is still returned." So I can''t simply do this: => if Photo.update(params[:photo].keys, params[:photo].values) Any suggestions? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyon...
2006 Jul 09
17
Has many / belongs to error with mysql
Hi, I''ve got stuck with a problem on my rails app - I''ve created a database for quotes and bookings, with a futher table "eventdetails" (details of a quote or booking) linked one-one for both tables using a polymorphic assciation. This all works, but I am now trying to link a quote to a number of bookings with a has_many and belongs_to (the foreign key is in the
2019 Oct 12
1
Password issue
...ase not: you do have to close out of the settings window (or switch to another account) to get the settings to save... it should ask you to save when you do that. If you don't save -- for example, if you make the change and then try checking for mail while the Settings window is still open and unsaved -- then it will use the old settings. But if it was still using the old settings even after a save... that seems like a bug. Did you try quitting and restarting Mail, too, before deleting/re-adding the account? Just curious, in case I ever run into such a bug. Cheers. --- Amir --------------...
2006 Jun 03
1
Can I tell if the associated record is new in a belongs_to save?
...Methods.html#M000530>:clients and a client class declares belongs_to<http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M000532>:firm. Now you do the following: Create a new firm and add clients using firm.clients.create methods. Note both firm and clients are unsaved at this point. Then you save the firm. It appears the sequence of events is 1) save the firm 2) save the clients Is it possible for the clients to know if the firm was newly saved? By the time the client is being saved firm.new_record? is false. Any suggestions? Thanks, -Kelly --------------...
2005 Dec 27
1
How do you detect if ''update'' save fails?
...''m updating multiple model objects in one go with something like this in my controller: => Photo.update(params[:photo].keys, params[:photo].values) When the update fails due to validation errors, how do I detect it? The Rails API says: "If the save fails under validations, the unsaved object is still returned." So I can''t simply do this: => if Photo.update(params[:photo].keys, params[:photo].values) Any suggestions? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyo...
2002 Apr 04
1
challenge-response token
Hello, I have to find a solution logon through OpenSSH to OpenBSD machines from anywhere in the world (unsave computers). So I think I must use a challenge-response system with an hardware token that isn't connected to the computer. I do not want to use a RSA ACE/SERVER, so i can't use SecurID ? I can't use challenge response mode with cryptocard, because I want to protect it against
2002 Sep 10
1
print command %J (job name) problem
...) printer. it all works, except that i can't get the windows' job name, to give a readable (and consistent) name to the generated pdf file. according to the manpage i can use %J to get the job name, but it doesn't work. the clients are win98 boxes. i tried to print either a test page, a unsaved word doc and a saved word doc. this is the pdfprinter's section of my smb.conf [pdf] printer name = pdf path = /tmp printable = yes guest ok = yes print command = /usr/bin/printpdf %s %u %J >> /tmp/printpdf.log lpq command = lprm command = thanks Francesco
2015 Mar 12
1
[PATCH] generator: small optimization of pod2text cache memoization
Instead of save every time there's a new element in the cache, batch the saving to disk every 100 changes, saving the unsaved remainder at the exit. While not a big optimization, this reduces a bit the disk usage during generator run. --- generator/utils.ml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/generator/utils.ml b/generator/utils.ml index 3a62084..1b00ce5 100644 --- a/genera...
2012 Apr 25
2
Test oddities
Can someone explain why a instance variable cannot be changed through an association under rspec/factory_girl? An example is in this gist<https://gist.github.com/2484336> . All tests pass except the last. All the steps pass in the console. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web