1. Use the subversion export command to create a tree free of svn subdirs;
it''s explained very well in the documentation.
2. Or copy to another dir tree and: here''s a script I used to use to
get rid
of .cvs stuff, you can change it if you like:
*find* *.* \( \( -name CVS -type d \) -o -name .cvsignore \) -exec
*rm* -rf {} \;
Victor Kane
http://awebfactory.com.ar
On 3/17/06, rails-request@lists.rubyonrails.org <
rails-request@lists.rubyonrails.org> wrote:>
> Send Rails mailing list submissions to
> rails@lists.rubyonrails.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.rubyonrails.org/mailman/listinfo/rails
> or, via email, send a message with subject or body ''help''
to
> rails-request@lists.rubyonrails.org
>
> You can reach the person managing the list at
> rails-owner@lists.rubyonrails.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Rails digest..."
>
>
> Today''s Topics:
>
> 1. Re: How do you display validation errors when validating chi
> (Chris T)
> 2. Re: OT: Subversion folder cleanup (Jeroen Houben)
> 3. MySQL-Front strangeness - help needed, esp. from newbies
> (Bill Walton)
> 4. Re: Application error (Rails) (Richard Williams)
> 5. RE: File Auditing with rails - File I/O issue (Brian Corrigan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 17 Mar 2006 15:20:21 +0100
> From: Chris T <chrismtaggart@yahoo.co.uk>
> Subject: [Rails] Re: How do you display validation errors when
> validating chi
> To: rails@lists.rubyonrails.org
> Message-ID: <78a26efa5c5c53158cbf40ee0ce63267@ruby-forum.com>
> Content-Type: text/plain; charset=utf-8
>
> Bryce Thornton wrote:
> > I can''t seem to figure out how to get child validation error
messages
> > to display. I''m going through the simple blog example DHH
uses in his
> > video. In the example, a comment belongs_to a post. Validating posts
> > works fine and the errors are displayed as they should be. When I try
> > to validate a comment using:
> >
> > validates_presence_of :summary
> >
> >
> > Thanks,
> > Bryce
>
> OK, with the help of an another thread got this sorted, so if
you''re
> still struggling this is how I did it (though there''s prob better
ways).
>
> The problem (I think) is that I was svaing the parent-child relationship
> and with it the child. The child failed the validation but (and here
I''m
> guessing) the error message was lost by the parent.save method. So I
> simply encased the parent.child save with an if child.valid? statement.
> Which threw me back to the form with the error messages and fields as
> before.
>
> Except...[and I''m sure I saw the solution to this somewhere but
can''t
> for the life of me find it now] the parent.id that was originally in the
> URL when the form was first visited (from a link: create a new child for
> this item), and was submitted with the other form items as a hidden
> field, is no longer there, and I can''t for the life of me think of
an
> elegant way of keepiong in the form. Any ideas?
>
> Chris T
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 17 Mar 2006 15:21:33 +0100
> From: Jeroen Houben <jeroen@terena.nl>
> Subject: Re: [Rails] OT: Subversion folder cleanup
> To: rails@lists.rubyonrails.org
> Message-ID: <441AC5ED.50002@terena.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Buntin, Seth - KATE wrote:
> > How do you clean up your app folder to place onto the server? I want
to
> > get rid of all the .svn stuff.
>
> I''m no "find" master but you should be able to add some
deployment task
> to do something like:
>
> find -type d -name .svn -exec rm -rf {}
>
> not tested!!
>
> Or you could just setup your webserver to disallow serving .svn
> directories.
>
> Jeroen
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 17 Mar 2006 08:08:46 -0600
> From: "Bill Walton" <bill.walton@charter.net>
> Subject: [Rails] MySQL-Front strangeness - help needed, esp. from
> newbies
> To: <rails@lists.rubyonrails.org>,
<instantrails-users@rubyforge.org>
> Message-ID: <04fb01c649cc$4f093f80$6501a8c0@dp2000>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Greetings to all,
>
> I''ve had two reports of strange behavior from MySQL-Front this
week from
> folks new to RoR who are working through the IR tutorial. I''m
digging into
> it and would very much appreciate hearing from anyone else that''s
seeing
> this. Newbies are in an especially good position to help here, as it
> appears that the problem lies in a recent release of MySQL-Front. So
here''s
> the scenerio.
>
> MySQL-Front will not allow the id on a table to be set to NOT NULL.
>
> Even stranger, one of the reporters, Steve Ball, made the time to check it
> out with phpmyadmin. Steve sent me a screen shot with both MySQL-Front and
> phpmyadmin looking at the same table, at the same time. MySQL-Front shows
> the field as NULL and phpmyadmin shows it as NOT NULL.
>
> My request is...
>
> If your version of MySQL-Front will not allow you to set the id to NOT
> NULL, please email me (either here or offline at bill.walton@charter.net)
> with the version of MySQL-Front you have installed. I am using Version
> 3.2, Build 10.15. It does not exhibit this behavior. Any help in
> isolating the build where the problem first appeared will be greatly
> appreciated.
>
> BTW, this does not appear to be causing a problem with completing the
> tutorial. OTOH, the tutorial is pretty basic WRT it''s demands on
the
> database.
>
> Thanks in advance for your help!
>
> Bill
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/1d20f53a/attachment-0001.html
>
> ------------------------------
>
> Message: 4
> Date: 17 Mar 2006 14:24:37 -0000
> From: Richard Williams <devlists-rubyonrails@devlists.com>
> Subject: Re: [Rails] Application error (Rails)
> To: rails@lists.rubyonrails.org
> Message-ID: <20060317142437.20007.qmail@devlists.com>
> Content-Type: text/plain; charset=utf-8
>
> Thanks for the responses.
>
> I will define a local_request? method in the app as a solution.
>
>
> class ApplicationController < ActionController::Base
> def local_request?
> false
> end
> end
>
>
>
>
> On Thursday, March 16, 2006, at 2:20 PM, Richard Williams wrote:
> >Suggestion to core developers: Have an configuration option that you
> >can set to allow exception tracebacks to appear in production mode
(like
> >that which appears in development mode) rather than "Application
Error
> >(Rails)".
> >
> >We would much prefer that a user can report (or take a screen dump)
when
> >an error occurs so that we can see what went wrong - instead of the
> >Application Error where we have to try and figure out what he was doing
> >at the time... etc...
> >
> >Thanks for the consideration.
> >
> >
> >
> >
> >
> >--
> >Posted with http://DevLists.com. Sign up and save your time!
> >_______________________________________________
> >Rails mailing list
> >Rails@lists.rubyonrails.org
> >http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
>
>
> --
> Posted with http://DevLists.com. Sign up and save your time!
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 17 Mar 2006 08:27:28 -0600
> From: "Brian Corrigan" <brian.corrigan@mm-games.com>
> Subject: RE: [Rails] File Auditing with rails - File I/O issue
> To: <rails@lists.rubyonrails.org>
> Message-ID:
>
<14FA9EFC1D2890489A88B84BCA050D4202D27C59@BMF_CLUSTER.austin.mgam>
> Content-Type: text/plain; charset="us-ascii"
>
> Ok, well I figured out part of the issue. The CSV file isn''t
being
> written before the Zlib call. If I break this up into two scripts, the
> first that writes the file, the second that zips it, things work.
>
>
>
> Any idea why the CSV file wouldn''t be saved when the block ends?
>
>
>
> Brian Corrigan
> Operations Manager
>
> MGAM Systems, Inc.
> 1 Broadway Place
> Schenectady, NY 12305
>
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=1+Broadway+Place&csz=Sch
> enectady%2C+NY+12305&country=us>
>
> brian.corrigan@mm-games.com <mailto:brian.corrigan@mm-games.com>
>
> tel:
> fax:
> mobile:
>
> 518-881-1121
> 518-881-1128
> 518-727-6652
>
>
>
> ________________________________
>
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian Corrigan
> Sent: Friday, March 17, 2006 9:18 AM
> To: rails@lists.rubyonrails.org
> Subject: RE: [Rails] File Auditing with rails - File I/O issue
>
>
>
> You know.. I realized that after I wrote the email. My mistake.. But,
> same results??
>
>
>
> My output is
>
> ""
>
> Nil
>
>
>
> Any other ideas?
>
>
>
> Brian Corrigan
> Operations Manager
>
> MGAM Systems, Inc.
> 1 Broadway Place
> Schenectady, NY 12305
>
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=1+Broadway+Place&csz=Sch
> enectady%2C+NY+12305&country=us>
>
> brian.corrigan@mm-games.com <mailto:brian.corrigan@mm-games.com>
>
> tel:
> fax:
> mobile:
>
> 518-881-1121
> 518-881-1128
> 518-727-6652
>
>
>
> ________________________________
>
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Chris Hall
> Sent: Thursday, March 16, 2006 6:28 PM
> To: rails@lists.rubyonrails.org
> Subject: Re: [Rails] File Auditing with rails - File I/O issue
>
>
>
> I think you might want to try
>
> outfile = "out.gz"
> ...
> Zlib::GzipWriter.open(outfile) do |gz|
> gz.write(File.read(tempfile))
> end
>
> also, gzip != zip hence why winzip can''t do anything with the
resulting
> gzipped file. I wouldn''t know if winzip supports gzip compression
or
> not. the extension for a gzipped file is typically .gz.
>
> Chris
>
> On 3/16/06, Brian Corrigan <brian.corrigan@mm-games.com> wrote:
>
> Hey Folks,
> I''ve written a script to generate a list of all files on a
machine,
> then zip the results. I''m going to stick a web front end on it,
and use
> it to audit some file servers. The problem is that the ZIP
> compression/decompression isn''t working,
> but its not what you might think. The script completes, but seems to
> not actually write anything.
>
> Here is a short version that only looks at the C:/temp drive. You can
> change this at the top.
>
> ---Start Code Here--
> require ''find''
> require ''csv''
> require ''zlib''
> tempfile = "temp.csv"
> outfile = "out.zip"
> dirname = "c:/temp"
> # Prepare comma-delimited file for writing
> CSV::Writer.generate (File.open(tempfile,"w+"),
'','') do |csv|
> Find.find(dirname) do |f|
> csv << [File.dirname(f), File.basename(f), File.mtime(f).to_s]
> end
> end
> # TEST: View the tempfile to make sure it has data.
> # This prints nothing, but the file DOES have info after
> # the script completes. Maybe the file isn''t written at this
point?
> p IO.read(tempfile)
> Zlib::GzipWriter.open(outfile) do |gz|
> gz << File.open (tempfile).read
> end
> Zlib::GzipReader.open(outfile) {|gz|
> print gz.read
> }
> # The ZIP file can''t be extracted with WINZIP. No idea why, but
since
> # I''ll be using another RUBY script for extraction, im not sure
that I
> care.
>
>
> ---------------------------
> Brian Corrigan
> ---------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/d7c5de53/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
> End of Rails Digest, Vol 18, Issue 441
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/3369e6f4/attachment-0001.html