Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Alternative attachment validation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Lucas  
View profile  
 More options Dec 3 2007, 3:26 am
From: Tim Lucas <t.lu...@toolmantim.com>
Date: Mon, 3 Dec 2007 19:26:02 +1100
Local: Mon, Dec 3 2007 3:26 am
Subject: Alternative attachment validation
We all know attachment_fu validation messages suck.

Here's my stab at something better:
http://toolmantim.com/article/2007/12/3/rollin_your_own_attachment_fu...

What ya reckon? Any suggestions on a better approach? Worth  
contributing something like this back to the plugin?

-- tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Olson  
View profile  
 More options Dec 3 2007, 9:40 am
From: "Rick Olson" <technowee...@gmail.com>
Date: Mon, 3 Dec 2007 08:40:41 -0600
Local: Mon, Dec 3 2007 9:40 am
Subject: Re: Alternative attachment validation
On 12/3/07, Tim Lucas <t.lu...@toolmantim.com> wrote:

> We all know attachment_fu validation messages suck.

> Here's my stab at something better:
> http://toolmantim.com/article/2007/12/3/rollin_your_own_attachment_fu...

> What ya reckon? Any suggestions on a better approach? Worth
> contributing something like this back to the plugin?

Looks good to me.  A couple other ideas might be support for :if or
:unless options, or maybe a block for completely custom validations
using validates_each.

For the record, I'm not opposed to opening up commit access even more.
 I'd like to eventually go with a git repo and give out public keys to
folks that want them. Rubinius style.

--
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Aimonetti  
View profile  
 More options Dec 3 2007, 12:18 pm
From: "Matt Aimonetti" <mattaimone...@gmail.com>
Date: Mon, 3 Dec 2007 09:18:23 -0800
Local: Mon, Dec 3 2007 12:18 pm
Subject: Re: Alternative attachment validation

Tim,

 It looks great, any chance you could write the tests and submit a patch?

Thanks,

-Matt

--
            --------
http://railsontherun.com

On 12/3/07, Rick Olson <technowee...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Lucas  
View profile  
 More options Dec 3 2007, 5:38 pm
From: Tim Lucas <t.lu...@toolmantim.com>
Date: Tue, 4 Dec 2007 09:38:38 +1100
Local: Mon, Dec 3 2007 5:38 pm
Subject: Re: Alternative attachment validation
On 04/12/2007, at 1:40 AM, Rick Olson wrote:

> Looks good to me.  A couple other ideas might be support for :if or
> :unless options, or maybe a block for completely custom validations
> using validates_each.

I don't need them, but if other people want to tell me what they'd  
need I'm happy to implement it.

If we're going the route of supporting standard AR validation options  
then I'd say scrap the validates_attachment convenience method and  
have 3 separate:

validates_presence_of_attachment
validates_size_of_attachment
validates_content_type_of_attachment

which act like standard AR validations (i.e. you can  
specify :if, :unless, :message, etc)

> For the record, I'm not opposed to opening up commit access even more.
> I'd like to eventually go with a git repo and give out public keys to
> folks that want them. Rubinius style.

I'd dig that. You could set up a simple post-commit hook on the  
definitive git repo master branch that pushes to your SVN for standard  
plugin install etc

-- tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Olson  
View profile  
 More options Dec 3 2007, 11:08 pm
From: "Rick Olson" <technowee...@gmail.com>
Date: Mon, 3 Dec 2007 22:08:24 -0600
Local: Mon, Dec 3 2007 11:08 pm
Subject: Re: Alternative attachment validation
On 12/3/07, Tim Lucas <t.lu...@toolmantim.com> wrote:

I'm all for that actually.  The validates_attachment thing was thrown
in become someone wanted to do their own thing and didn't want the
validations to be automatic.

> > For the record, I'm not opposed to opening up commit access even more.
> > I'd like to eventually go with a git repo and give out public keys to
> > folks that want them. Rubinius style.

> I'd dig that. You could set up a simple post-commit hook on the
> definitive git repo master branch that pushes to your SVN for standard
> plugin install etc

Evan is supposedly working on a good svn mirroring script for git, so
I plan to use that.  If you really want access before then, let me
know.  There's no telling when the script will be ready and when I'll
have a chance to set everything up...

--
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Lucas  
View profile  
 More options Dec 4 2007, 12:31 am
From: Tim Lucas <t.lu...@toolmantim.com>
Date: Tue, 4 Dec 2007 16:31:37 +1100
Local: Tues, Dec 4 2007 12:31 am
Subject: Re: Alternative attachment validation
On 04/12/2007, at 3:08 PM, Rick Olson wrote:

>> If we're going the route of supporting standard AR validation options
>> then I'd say scrap the validates_attachment convenience method and
>> have 3 separate:

>> validates_presence_of_attachment
>> validates_size_of_attachment
>> validates_content_type_of_attachment

> I'm all for that actually.  The validates_attachment thing was thrown
> in become someone wanted to do their own thing and didn't want the
> validations to be automatic.

cool yeah I figured something like that. PDI'ing under way.

> Evan is supposedly working on a good svn mirroring script for git, so
> I plan to use that.  If you really want access before then, let me
> know.  There's no telling when the script will be ready and when I'll
> have a chance to set everything up...

cool. I've got no probs sticking with SVN.

-- tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Lucas  
View profile  
 More options Dec 5 2007, 8:44 pm
From: Tim Lucas <t.lu...@toolmantim.com>
Date: Thu, 6 Dec 2007 12:44:40 +1100
Local: Wed, Dec 5 2007 8:44 pm
Subject: Re: Alternative attachment validation
On 04/12/2007, at 1:40 AM, Rick Olson wrote:

> For the record, I'm not opposed to opening up commit access even more.
> I'd like to eventually go with a git repo and give out public keys to
> folks that want them. Rubinius style.

A somewhat related but unrelated question: how the hell do you git-svn  
clone a repo that doesn't use trunk/tags/branches? I'm trying to git-
svn clone attachment_fu to submit a bunch of patches and can't for the  
life of me find a combination of command line args that does what I  
need.

-- tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Aimonetti  
View profile  
 More options Dec 5 2007, 8:50 pm
From: "Matt Aimonetti" <mattaimone...@gmail.com>
Date: Wed, 5 Dec 2007 17:50:57 -0800
Local: Wed, Dec 5 2007 8:50 pm
Subject: Re: Alternative attachment validation

Sorry I can't help you with that :(

Rick is his way to Oregon, maybe he'll be able to help sometimes next week.

-Matt

--
            --------
http://railsontherun.com

On 12/5/07, Tim Lucas <t.lu...@toolmantim.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick  
View profile  
 More options Dec 7 2007, 12:32 am
From: rick <technowee...@gmail.com>
Date: Thu, 6 Dec 2007 21:32:17 -0800 (PST)
Local: Fri, Dec 7 2007 12:32 am
Subject: Re: Alternative attachment validation

On Dec 5, 5:44 pm, Tim Lucas <t.lu...@toolmantim.com> wrote:

> On 04/12/2007, at 1:40 AM, Rick Olson wrote:

> > For the record, I'm not opposed to opening up commit access even more.
> > I'd like to eventually go with a git repo and give out public keys to
> > folks that want them. Rubinius style.

> A somewhat related but unrelated question: how the hell do you git-svn  
> clone a repo that doesn't use trunk/tags/branches? I'm trying to git-
> svn clone attachment_fu to submit a bunch of patches and can't for the  
> life of me find a combination of command line args that does what I  
> need.

No clue, my git-fu is extremely weak.  I guess treat the main
attachment_fu dir as the trunk?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google