similar to: destroy vs delete

Displaying 20 results from an estimated 700 matches similar to: "destroy vs delete"

2006 Aug 16
1
absolute default route in routes.rb
how do you set a default route in routes.rb so that anything not recognised will default to :controller => ''home'' map.connect ''*'', :controller => "home" does not work so well cheers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Sep 05
8
Hi..Guys new plugin again
Hi.. Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they will always be up-to-date. For example, given a foreign-key from a customer_id column in an orders table to an id column in a customers table, the plugin creates:
2006 Sep 23
8
acts_as_rateable plugin help!
Hello, I am having some trouble figuring out how to use the rateable plugin. i followed as close as the directions located at http://www.naffis.com/blog/articles/2006/08/31/rails-ajax-star-rating-system but i fail at working it. i am getting this error You have a nil object when you didn''t expect it! The error occured while evaluating nil.rating Extracted source (around line #1): 1:
2006 Jul 12
1
Test for file_column
hi all, has any one had experience writing a test for file_column I can write a test for testing the data in the form, but am not sure how to test against the image any tips? cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/08f7996a/attachment.html
2006 Jul 24
1
upload progress
what is the best method for adding upload progress functionality there are the fcgi and mongrel plugins... but is there an HTTP Server agnostic way of doing upload progress stats cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060724/7c477b9c/attachment-0001.html
2006 Jul 19
2
best practice deployment
what is the best method to deploy from a development machine to production when you need slightly different files for each mode do you use TWO files such as db.yml.dev and db.yml.prod and use capistrano to deploy one or the other to database.yml or is it better to have one file and use conditions in your file such as <% if ENV[''RAILS_ENV''] = "production" %>
2006 Dec 14
12
Saving dates
Hi having trouble saving dates in my form i have the following in the view <%= date_select("details", "open_date") %> and i have @exhibition.open_date = params[:details][:open_date] and then @exhibition.save All the other values form (not seen here) get saved but not the dates. What am i doing wrong ? -- Posted via http://www.ruby-forum.com/.
2006 Sep 20
17
Newbie : What is the number Rails adds in images URL, etc?
If I write : <%= image_tag "rails.png" %> I get in HTML : <img alt="Rails" src="/images/rails.png?1158095722" /> What is the number at the end of the src tag ? What is it for ? Thanks :). Nicolas. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2006 Aug 09
0
Re: association does not get foreign key
On 8/10/06, Dion Hewson <dionhewson@gmail.com> wrote: > > I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) > > but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship > > > any ideas? > > cheers > > dion > > --------------------------------- > >
2006 Nov 28
7
RoR Logs viewer?
Ok another newbie question. I did a tail -f on the test.log file for the sample depot application in Agile Web Development book and was very impressed with the formatted log entries. Apparently, a lot of effort has been put into this. My question is: what is the most effective way of viewing this log? tail command? I ask this question because a bare bones text editor like gedit or vi will not
2008 Dec 19
3
Delete All action
Hi, What is the best way to delete all members of a model? For example I have a tasks model and want to put a link in that will delete all tasks at once. Something like, @tasks = Task.all @tasks.each { |task| task.destroy } Do I need another action for this, and what should the link to it be? cheers, DAZ --~--~---------~--~----~------------~-------~--~----~ You received this message because
2005 Dec 14
1
CRAN task view: Multivariate
Hello, I've assembled a Multivariate ctv (with a lot of help from Achim Zeleis, who has now posted the view on CRAN). I'd be grateful for comments regarding missing packages / functions. Opinions on the organisation of the view would also be appreciated, as well as having any errors pointed out. I've adopted a rather broad and vague definition of "multivariate", which may
2006 Jan 25
11
Executing Ruby code that is inside a string
I would like to put Ruby code inside a string, between <%= %> tags, and have the code inside the tags executed when the string is displayed. Is this possible? -- Posted via http://www.ruby-forum.com/.
2000 Jun 29
2
Local Moran's I / Getis and Ord and Rousseauw Cluster Algorithms
Sorry for the repetition, unless I've got bad deja vu this questions been asked before but I couldn't turn up an answer on CRAN. Is there already any code in existence for local dependence measures such as Moran's I or Getis and Ord G? Also, S-Plus has a number of interstingly named Cluster Algorithms based on some previous stand-alone fortran algorithms (agnes, daisy etc.) which
2016 Apr 01
5
[cfe-dev] Clang project renamed
I second the motion. All in favor? On Fri, Apr 1, 2016 at 10:57 AM, Renato Golin via cfe-dev < cfe-dev at lists.llvm.org> wrote: > On 1 April 2016 at 18:50, Richard Smith via cfe-dev > <cfe-dev at lists.llvm.org> wrote: > > * The name has been used by a kickstarter project, causing incalculable > > confusion[0] > > Neal Stephenson has poetic license to do
2004 Dec 20
2
Producing "Editable" Graphs for PowerPoint
Hello, (apologies, I'm not entirely sure whether this question is about R or my limitations with PowerPoint). I've submitted a paper (which has been accepted) but the journal now require me to submit graphs that are "editable in PowerPoint". I would be grateful for suggestions as to how I should do this. The best route seems to be to copy-and-paste the figures from the
2014 May 10
22
[Bug 78530] New: Memory corruption on Lenovo t440p with runpm
https://bugs.freedesktop.org/show_bug.cgi?id=78530 Priority: medium Bug ID: 78530 Assignee: nouveau at lists.freedesktop.org Summary: Memory corruption on Lenovo t440p with runpm QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS: All Reporter: nikoamia at gmail.com
2007 Sep 07
6
ActiveRecord::Base#update_all expected behaviour
Hi I noticed that if in my code I use the following: Photo.update_all("title = ''Ruby rocks'' ", "id IN (#{@photo_ids})") All my objects are properly updated but none of the filters/callbacks are triggered. Is that what''s expected? I have a before_update filter set on the Photo class and it gets totally ignored, I guess the only way to solve this
2007 Nov 15
2
Trouble using should_receive
I have this code trying to ensure my reset method works. I want to make sure all the participants have their destroy method called. # in my spec for Room r = Room.new(:name => ''bob'') r.save p = Participant.new(:login => ''a'', :password => ''b'', :password_confirmation => ''b'') p.room = r
2005 Jan 17
1
pairs: altering pch options on upper and lower panel of pairwise scatter plots
Hello, I can't figure out how to use the upper.panel and lower.panel options in pairs to alter the label options for either panel independently of the other. I would like to be able to show the pairwise scatter plots for the data as they are (a vanilla pairs plot?) but separately to be able to label the points according to a factor level. It is easy enough to do this independently, but I