Ian Simpson
2005-Jul-18 15:30 UTC
To the rails community, please accept my apology for the inappropriate earlier mail sent
best regards, Ian Simpson New & emerging technologies consultant tel: 0161 838 5699 fax: 0161 838 5611 www.rethink-recruitment.com 3rd Floor The Triangle Exchange Square Manchester M4 3TR ReThink Recruitment Solutions Limited -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Sent: 18 July 2005 11:30 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Rails Digest, Vol 10, Issue 192 Send Rails mailing list submissions to rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org You can reach the person managing the list at rails-owner-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Rails digest..." Today''s Topics: 1. Re: OT: Trac hosting? (Fran?ois Beausoleil) 2. Re: Apologies to the community should have made myself clear !! Please see the attached Job Specification (Joe Van Dyk) 3. Re: Wrapping methods in derivative classes with logic from the super class (Fran?ois Beausoleil) 4. Re: Re: [ANN] acts_as_versioned extension (Rick Olson) 5. Re: Apologies to the community should have made myself clear !! Please see the attached Job Specification (Kevin Williams) 6. Using paths to denote objects (Michael Schuerig) 7. are there any working paypal integration/payment gems? (Francois Paul) 8. Re: are there any working paypal integration/payment gems? (Sascha Ebach) 9. Re: are there any working paypal integration/payment gems? (Rick Olson) 10. Single Table Inheritance Implementation Question (Chris Roos) 11. Re: Re: [ANN] acts_as_versioned extension (Sascha Ebach) 12. Re: are there any working paypal integration/payment gems? (Francois Paul) ---------------------------------------------------------------------- Message: 1 Date: Mon, 18 Jul 2005 09:33:51 -0400 From: Fran?ois Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> Subject: Re: [Rails] OT: Trac hosting? To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBAFBF.9020201-IQIa899fVSs@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi ! Jeffrey Hardy said the following on 2005-07-17 14:01:> https://opensvn.csie.org/ is free, but I''ve never used it so I can''t > speak for its quality.I''ve used their hosting solution for three or four projects. I''ve never trusted very important stuff, because I couldn''t be sure if they would still be around in two or three years. If you read the home page of csie.org, you''ll see they registered their domain for 10 years. Anyway, the stuff I host has been working fine. Bye ! Frangois ------------------------------ Message: 2 Date: Mon, 18 Jul 2005 06:38:44 -0700 From: Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [Rails] Apologies to the community should have made myself clear !! Please see the attached Job Specification To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <c715e6405071806381619037f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1 On 7/18/05, Ian Simpson <isimpson-DVlt95AHyCUFZYWR8B6FNPEFw0jia7JU@public.gmane.org> wrote:> ><snip horrible html> :-( Ian, it''s considered poor form to post HTML emails to public mailing lists. Especially when there''s nothing in the post that would necessitate HTML. Joe ------------------------------ Message: 3 Date: Mon, 18 Jul 2005 09:46:57 -0400 From: Fran?ois Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> Subject: Re: [Rails] Wrapping methods in derivative classes with logic from the super class To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBB2D1.9010306-IQIa899fVSs@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello Dominic ! Dominic Marks said the following on 2005-07-17 17:29:> On Sunday 17 July 2005 19:44, Dominic Marks wrote: > I figured out how I am going to approach this for now. Since I call > the run method from my own code, and it will not be called from anywhere > else, I can simply write an additional method in TaskManager to do > my bidding and then call the run method in the derivative class. So > long as none of the decendants interfere with this method, and no code > calls the run method directly this meets all my goals.What you have described above is the Template Method pattern[1]. If you have never read the Design Patterns book[2], check it out. Bye ! Frangois [1] http://c2.com/cgi/wiki?TemplateMethodPattern [2] http://c2.com/cgi/wiki?DesignPatternsBook ------------------------------ Message: 4 Date: Mon, 18 Jul 2005 09:18:00 -0500 From: Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [Rails] Re: [ANN] acts_as_versioned extension To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <48fe25b05071807183b45a93a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1> > IMHO, it would be great if some future acts_as_versioned extension > > could allow for this single-table/marshalled-objects approach, when > > it''s called for.Sounds great. I''d like to get the other options (requirements and limits) added before I start tinkering with this. I''d really like to keep the act as ''rails like'' as possible, so here''s what I was thinking: acts_as_versioned :table_layout => :individual || :global # :individual being the current behavior It would be nice to use separate acts for them, but I can''t really think of a good name. acts_as_globally_versioned? I''ll have to do some research, perhaps these patterns have good names that can be used. Feel free to post patches to the ticket (http://dev.rubyonrails.org/ticket/1758) if you''d like to help. Test cases are always welcome. Also, I''ve only tested on mysql and postgresql so far. -- rick http://techno-weenie.net ------------------------------ Message: 5 Date: Mon, 18 Jul 2005 08:20:26 -0600 From: Kevin Williams <kevin-P4szbAuRZ8UqDJ6do+/SaQ@public.gmane.org> Subject: Re: [Rails] Apologies to the community should have made myself clear !! Please see the attached Job Specification To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBAAA.7080708-P4szbAuRZ8UqDJ6do+/SaQ@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Ian Simpson wrote:> The most recent project is for a client of mine, based in Leeds they > developing a major site, including 11 subsidiary sites + 3 dependent > sites on each of the 11, giving a total of 34 sites. All being driven by > a sophisticated Content management system. There will be a lot of > upfront development, followed by smaller implementations.A major client in Leeds, huh? Is it too soon to make "suicide bomber" / Al-Qaeda jokes? Probably. Nevermind. ------------------------------ Message: 6 Date: Mon, 18 Jul 2005 16:23:35 +0200 From: Michael Schuerig <michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> Subject: [Rails] Using paths to denote objects To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <200507181623.35708.michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> Content-Type: text/plain; charset="us-ascii" In the past, in environments other than Rails, I''ve a couple of times gainfully used path expressions to refer to objects in the UI-layer. Now, in Rails, I''m already using them for creating lists where columns are described by meta data. I take it that there are even more an better uses. I haven''t thought this through carefully, so here are just one example. Currently, to get a text input field one writes something like this <%= text_field ''address'', ''street'' %> This requires the existence of a binding for ''address'' in the template. Now assume the address is reachable from another object, ''person'', anyway. Then how about writing it like this instead: <%= text_field ''person.address.street'' %> which is meant to result in this HTML <input type="text" id="person_address_street" name="person[address][street]" value="..." /> For iteration over multiple values a wildcard, ''*'', could be used in the path. For the moment I don''t quite see how to make this really useful, though. I think a fairly minimal language for expressing paths is sufficient in Rails as there''s always Ruby to fall back on. Full-grown navigational language such as XPath-applied-to-objects or OGNL (Java) are more appropriate for environments where the host language is not accessible. Below is my first stab at an extended Object#send method that handles paths. I''m interested in your thoughts. Michael class Object alias_method :send_without_path, :send def send(path, *args) if path.kind_of?(Symbol) return self.send_without_path(path, *args) elsif path.kind_of?(Array) path = path.dup elsif path.kind_of?(String) path = path.split(''.'') else raise TypeError, "Unrecognized path type for send: <#{path}>" end method = path.shift case when method == ''*'' raise TypeError, "Wildcard path item is only applicable to Enumerables; self: <#{self}>" unless self.kind_of?(Enumerable) if !path.empty? next_value = self.inject([]) { |result, elem| result << elem.send(path, *args) } else next_value = self end return next_value when self.respond_to?(method) next_value = self.send_without_path(method, *args) when self.respond_to?(''[]'') next_value = self.send_without_path(''[]'', method, *args) else raise TypeError, "Can''t advance path to ''#{method}''; no applicable method for <#{self.inspect}>" end if not path.empty? next_value.send(path, *args) else next_value end end end -- Michael Schuerig Failures to use one''s frontal lobes mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org can result in the loss of them. http://www.schuerig.de/michael/ --William H. Calvin ------------------------------ Message: 7 Date: Mon, 18 Jul 2005 16:29:24 +0200 From: Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> Subject: [Rails] are there any working paypal integration/payment gems? To: Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBCC4.9050701-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I''m looking to process transactions on my site, and surely i''m not the first to have this need. Are there any gems available (with success stories) that is easy to integrate into my application and that would handle the communication to some payment gateway (eg Paypal). wouldn''t want to have to reinvent the wheel. what is the best route to go? thanks, *:f*rancois ------------------------------ Message: 8 Date: Mon, 18 Jul 2005 16:33:25 +0200 From: Sascha Ebach <se-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> Subject: Re: [Rails] are there any working paypal integration/payment gems? To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBDB5.7050700-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I have no success stories, but a simple $ gem install payment Attempting local installation of ''payment'' Local gem file not found: payment*.gem Attempting remote installation of ''payment'' Updating Gem source index for: http://gems.rubyforge.org Successfully installed payment-1.0.1 Installing RDoc documentation for payment-1.0.1... did it for me ;) Sascha ------------------------------ Message: 9 Date: Mon, 18 Jul 2005 09:35:06 -0500 From: Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [Rails] are there any working paypal integration/payment gems? To: francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org, rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <48fe25b0507180735269fc707-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1 On 7/18/05, Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> wrote:> I''m looking to process transactions on my site, and surely i''m not the > first to have this need. > Are there any gems available (with success stories) that is easy to > integrate into my application and that would handle the communication to > some payment gateway (eg Paypal). > wouldn''t want to have to reinvent the wheel. > what is the best route to go?The payment ruby module is an Authorize.Net gateway: http://payment.rufy.com/ I don''t know if the paypal module has a more official page, but there''s one available at http://dist.leetsoft.com/pkg/. -- rick http://techno-weenie.net ------------------------------ Message: 10 Date: Mon, 18 Jul 2005 15:34:53 +0100 From: Chris Roos <chris-zoUjy1rb4AnQXOPxS62xeg@public.gmane.org> Subject: [Rails] Single Table Inheritance Implementation Question To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBE0D.3020705-zoUjy1rb4AnQXOPxS62xeg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, I''ve just implemented the STI pattern in a Rails project. I have created two tables, one being the main STI table (partners) and the other (partner_types) containing metadata about the STI relationships. The necessity for the STI pattern comes from needing to collect slightly different Partner data depending on the Partner Type. The first step on the data entry form is to select the Partner Type from a list, which is populated from the partner_types table. In the controller, I''m getting the @partner_type that''s been selected and using a field in the table to obtain the type of Partner to instantiate. I use eval "" to instantiate the relevant Partner. This works fine at present but I''m wondering whether this is a good approach to take? One niggle is that I now have duplication between the names of the model classes, the type stored in the STI Table (Partner) type column and the type stored alongside a description in the Partner_Types table. Any thoughts would be much appreciated. Chris ------------------------------ Message: 11 Date: Mon, 18 Jul 2005 16:36:36 +0200 From: Sascha Ebach <se-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> Subject: Re: [Rails] Re: [ANN] acts_as_versioned extension To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBE74.90508-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Rick Olson wrote:>>>IMHO, it would be great if some future acts_as_versioned extension >>>could allow for this single-table/marshalled-objects approach, when >>>it''s called for. > > > Sounds great. I''d like to get the other options (requirements and > limits) added before I start tinkering with this. I''d really like to > keep the act as ''rails like'' as possible, so here''s what I was > thinking: > > acts_as_versioned :table_layout => :individual || :global # > :individual being the current behaviorwhat about: acts_as_versioned :store => :individual || :marshal # :individual being the current behavior instead of marshal, I could think of "simple"> It would be nice to use separate acts for them, but I can''t really > think of a good name. acts_as_globally_versioned? I''ll have to do > some research, perhaps these patterns have good names that can be > used.I have thought about that, too, but I don''t think this is a good idea. Essentially, what you are doing, is simply exchanging the data store for the versioned objects. I don''t think this deserves a seperate name.> Feel free to post patches to the ticket > (http://dev.rubyonrails.org/ticket/1758) if you''d like to help. Test > cases are always welcome. Also, I''ve only tested on mysql and > postgresql so far.I would love to, but client work comes first :(. I wish I could come back to Rails, couldn''t work on my CMS for 3 months now. Sascha ------------------------------ Message: 12 Date: Mon, 18 Jul 2005 16:35:22 +0200 From: Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> Subject: Re: [Rails] are there any working paypal integration/payment gems? To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <42DBBE2A.7010101-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed thanks, i''ll check that out. *:f*rancois Sascha Ebach wrote:> I have no success stories, but a simple > > $ gem install payment > Attempting local installation of ''payment'' > Local gem file not found: payment*.gem > Attempting remote installation of ''payment'' > Updating Gem source index for: http://gems.rubyforge.org > Successfully installed payment-1.0.1 > Installing RDoc documentation for payment-1.0.1... > > did it for me ;) > > Sascha > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >------------------------------ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails End of Rails Digest, Vol 10, Issue 192 **************************************
Chris Boone
2005-Jul-18 15:36 UTC
Re: To the rails community, please accept my apology for the inappropriate earlier mail sent
Dude, I don''t know why everyone''s getting so mad at you -- you''re the funniest thing going on in my world this Monday morning.... Ignorance must surely be *bliss*.... :) On 7/18/05, Ian Simpson <isimpson-DVlt95AHyCUFZYWR8B6FNPEFw0jia7JU@public.gmane.org> wrote:> > > best regards, > Ian Simpson > New & emerging technologies consultant > > tel: 0161 838 5699 > fax: 0161 838 5611 > www.rethink-recruitment.com 3rd Floor > The Triangle > Exchange Square > Manchester > M4 3TR > ReThink Recruitment Solutions Limited > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Sent: 18 July 2005 11:30 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Rails Digest, Vol 10, Issue 192 > > Send Rails mailing list submissions to > rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > You can reach the person managing the list at > rails-owner-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Rails digest..." > > > Today''s Topics: > > 1. Re: OT: Trac hosting? (Fran?ois Beausoleil) > 2. Re: Apologies to the community should have made myself clear > !! Please see the attached Job Specification (Joe Van Dyk) > 3. Re: Wrapping methods in derivative classes with logic from > the super class (Fran?ois Beausoleil) > 4. Re: Re: [ANN] acts_as_versioned extension (Rick Olson) > 5. Re: Apologies to the community should have made myself clear > !! Please see the attached Job Specification (Kevin Williams) > 6. Using paths to denote objects (Michael Schuerig) > 7. are there any working paypal integration/payment gems? > (Francois Paul) > 8. Re: are there any working paypal integration/payment gems? > (Sascha Ebach) > 9. Re: are there any working paypal integration/payment gems? > (Rick Olson) > 10. Single Table Inheritance Implementation Question (Chris Roos) > 11. Re: Re: [ANN] acts_as_versioned extension (Sascha Ebach) > 12. Re: are there any working paypal integration/payment gems? > (Francois Paul) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 18 Jul 2005 09:33:51 -0400 > From: Fran?ois Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> > Subject: Re: [Rails] OT: Trac hosting? > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBAFBF.9020201-IQIa899fVSs@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi ! > > Jeffrey Hardy said the following on 2005-07-17 14:01: > > https://opensvn.csie.org/ is free, but I''ve never used it so I can''t > > speak for its quality. > > I''ve used their hosting solution for three or four projects. I''ve never > trusted very important stuff, because I couldn''t be sure if they would > still be around in two or three years. > > If you read the home page of csie.org, you''ll see they registered their > domain for 10 years. Anyway, the stuff I host has been working fine. > > Bye ! > Frangois > > > > ------------------------------ > > Message: 2 > Date: Mon, 18 Jul 2005 06:38:44 -0700 > From: Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Subject: Re: [Rails] Apologies to the community should have made > myself clear !! Please see the attached Job Specification > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <c715e6405071806381619037f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1 > > On 7/18/05, Ian Simpson <isimpson-DVlt95AHyCUFZYWR8B6FNPEFw0jia7JU@public.gmane.org> wrote: > > > > > <snip horrible html> > > :-( > > Ian, it''s considered poor form to post HTML emails to public mailing > lists. Especially when there''s nothing in the post that would > necessitate HTML. > > Joe > > > ------------------------------ > > Message: 3 > Date: Mon, 18 Jul 2005 09:46:57 -0400 > From: Fran?ois Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> > Subject: Re: [Rails] Wrapping methods in derivative classes with logic > from the super class > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBB2D1.9010306-IQIa899fVSs@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello Dominic ! > > Dominic Marks said the following on 2005-07-17 17:29: > > On Sunday 17 July 2005 19:44, Dominic Marks wrote: > > I figured out how I am going to approach this for now. Since I call > > the run method from my own code, and it will not be called from anywhere > > else, I can simply write an additional method in TaskManager to do > > my bidding and then call the run method in the derivative class. So > > long as none of the decendants interfere with this method, and no code > > calls the run method directly this meets all my goals. > > What you have described above is the Template Method pattern[1]. If you > have never read the Design Patterns book[2], check it out. > > Bye ! > Frangois > > [1] http://c2.com/cgi/wiki?TemplateMethodPattern > [2] http://c2.com/cgi/wiki?DesignPatternsBook > > > > ------------------------------ > > Message: 4 > Date: Mon, 18 Jul 2005 09:18:00 -0500 > From: Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Subject: Re: [Rails] Re: [ANN] acts_as_versioned extension > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <48fe25b05071807183b45a93a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1 > > > > IMHO, it would be great if some future acts_as_versioned extension > > > could allow for this single-table/marshalled-objects approach, when > > > it''s called for. > > Sounds great. I''d like to get the other options (requirements and > limits) added before I start tinkering with this. I''d really like to > keep the act as ''rails like'' as possible, so here''s what I was > thinking: > > acts_as_versioned :table_layout => :individual || :global # > :individual being the current behavior > > It would be nice to use separate acts for them, but I can''t really > think of a good name. acts_as_globally_versioned? I''ll have to do > some research, perhaps these patterns have good names that can be > used. > > Feel free to post patches to the ticket > (http://dev.rubyonrails.org/ticket/1758) if you''d like to help. Test > cases are always welcome. Also, I''ve only tested on mysql and > postgresql so far. > > -- > rick > http://techno-weenie.net > > > ------------------------------ > > Message: 5 > Date: Mon, 18 Jul 2005 08:20:26 -0600 > From: Kevin Williams <kevin-P4szbAuRZ8UqDJ6do+/SaQ@public.gmane.org> > Subject: Re: [Rails] Apologies to the community should have made > myself clear !! Please see the attached Job Specification > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBAAA.7080708-P4szbAuRZ8UqDJ6do+/SaQ@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Ian Simpson wrote: > > > The most recent project is for a client of mine, based in Leeds they > > developing a major site, including 11 subsidiary sites + 3 dependent > > sites on each of the 11, giving a total of 34 sites. All being driven by > > a sophisticated Content management system. There will be a lot of > > upfront development, followed by smaller implementations. > > A major client in Leeds, huh? Is it too soon to make "suicide bomber" / > Al-Qaeda jokes? Probably. Nevermind. > > > ------------------------------ > > Message: 6 > Date: Mon, 18 Jul 2005 16:23:35 +0200 > From: Michael Schuerig <michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> > Subject: [Rails] Using paths to denote objects > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <200507181623.35708.michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> > Content-Type: text/plain; charset="us-ascii" > > > In the past, in environments other than Rails, I''ve a couple of times > gainfully used path expressions to refer to objects in the UI-layer. > Now, in Rails, I''m already using them for creating lists where columns > are described by meta data. I take it that there are even more an > better uses. I haven''t thought this through carefully, so here are just > one example. > > Currently, to get a text input field one writes something like this > > <%= text_field ''address'', ''street'' %> > > This requires the existence of a binding for ''address'' in the template. > Now assume the address is reachable from another object, ''person'', > anyway. Then how about writing it like this instead: > > <%= text_field ''person.address.street'' %> > > which is meant to result in this HTML > > <input type="text" id="person_address_street" > name="person[address][street]" value="..." /> > > For iteration over multiple values a wildcard, ''*'', could be used in the > path. For the moment I don''t quite see how to make this really useful, > though. > > I think a fairly minimal language for expressing paths is sufficient in > Rails as there''s always Ruby to fall back on. Full-grown navigational > language such as XPath-applied-to-objects or OGNL (Java) are more > appropriate for environments where the host language is not accessible. > > Below is my first stab at an extended Object#send method that handles > paths. I''m interested in your thoughts. > > Michael > > > class Object > > alias_method :send_without_path, :send > > def send(path, *args) > if path.kind_of?(Symbol) > return self.send_without_path(path, *args) > elsif path.kind_of?(Array) > path = path.dup > elsif path.kind_of?(String) > path = path.split(''.'') > else > raise TypeError, "Unrecognized path type for send: <#{path}>" > end > > method = path.shift > > case > when method == ''*'' > raise TypeError, "Wildcard path item is only applicable to > Enumerables; self: <#{self}>" unless self.kind_of?(Enumerable) > if !path.empty? > next_value = self.inject([]) { |result, elem| > result << elem.send(path, *args) > } > else > next_value = self > end > return next_value > > when self.respond_to?(method) > next_value = self.send_without_path(method, *args) > > when self.respond_to?(''[]'') > next_value = self.send_without_path(''[]'', method, *args) > > else > raise TypeError, "Can''t advance path to ''#{method}''; no applicable > method for <#{self.inspect}>" > end > > if not path.empty? > next_value.send(path, *args) > else > next_value > end > end > > end > > > -- > Michael Schuerig Failures to use one''s frontal lobes > mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org can result in the loss of them. > http://www.schuerig.de/michael/ --William H. Calvin > > > ------------------------------ > > Message: 7 > Date: Mon, 18 Jul 2005 16:29:24 +0200 > From: Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> > Subject: [Rails] are there any working paypal integration/payment > gems? > To: Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBCC4.9050701-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I''m looking to process transactions on my site, and surely i''m not the > first to have this need. > Are there any gems available (with success stories) that is easy to > integrate into my application and that would handle the communication to > some payment gateway (eg Paypal). > wouldn''t want to have to reinvent the wheel. > what is the best route to go? > > thanks, > > *:f*rancois > > > ------------------------------ > > Message: 8 > Date: Mon, 18 Jul 2005 16:33:25 +0200 > From: Sascha Ebach <se-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> > Subject: Re: [Rails] are there any working paypal integration/payment > gems? > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBDB5.7050700-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I have no success stories, but a simple > > $ gem install payment > Attempting local installation of ''payment'' > Local gem file not found: payment*.gem > Attempting remote installation of ''payment'' > Updating Gem source index for: http://gems.rubyforge.org > Successfully installed payment-1.0.1 > Installing RDoc documentation for payment-1.0.1... > > did it for me ;) > > Sascha > > > ------------------------------ > > Message: 9 > Date: Mon, 18 Jul 2005 09:35:06 -0500 > From: Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Subject: Re: [Rails] are there any working paypal integration/payment > gems? > To: francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org, rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <48fe25b0507180735269fc707-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1 > > On 7/18/05, Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> wrote: > > I''m looking to process transactions on my site, and surely i''m not the > > first to have this need. > > Are there any gems available (with success stories) that is easy to > > integrate into my application and that would handle the communication to > > some payment gateway (eg Paypal). > > wouldn''t want to have to reinvent the wheel. > > what is the best route to go? > > The payment ruby module is an Authorize.Net gateway: > http://payment.rufy.com/ > > I don''t know if the paypal module has a more official page, but > there''s one available at http://dist.leetsoft.com/pkg/. > > -- > rick > http://techno-weenie.net > > > ------------------------------ > > Message: 10 > Date: Mon, 18 Jul 2005 15:34:53 +0100 > From: Chris Roos <chris-zoUjy1rb4AnQXOPxS62xeg@public.gmane.org> > Subject: [Rails] Single Table Inheritance Implementation Question > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBE0D.3020705-zoUjy1rb4AnQXOPxS62xeg@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > I''ve just implemented the STI pattern in a Rails project. I have > created two tables, one being the main STI table (partners) and the > other (partner_types) containing metadata about the STI relationships. > > The necessity for the STI pattern comes from needing to collect slightly > different Partner data depending on the Partner Type. > > The first step on the data entry form is to select the Partner Type from > a list, which is populated from the partner_types table. In the > controller, I''m getting the @partner_type that''s been selected and using > a field in the table to obtain the type of Partner to instantiate. I > use eval "" to instantiate the relevant Partner. > > This works fine at present but I''m wondering whether this is a good > approach to take? One niggle is that I now have duplication between the > names of the model classes, the type stored in the STI Table (Partner) > type column and the type stored alongside a description in the > Partner_Types table. > > Any thoughts would be much appreciated. > > Chris > > > > ------------------------------ > > Message: 11 > Date: Mon, 18 Jul 2005 16:36:36 +0200 > From: Sascha Ebach <se-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> > Subject: Re: [Rails] Re: [ANN] acts_as_versioned extension > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBE74.90508-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Rick Olson wrote: > >>>IMHO, it would be great if some future acts_as_versioned extension > >>>could allow for this single-table/marshalled-objects approach, when > >>>it''s called for. > > > > > > Sounds great. I''d like to get the other options (requirements and > > limits) added before I start tinkering with this. I''d really like to > > keep the act as ''rails like'' as possible, so here''s what I was > > thinking: > > > > acts_as_versioned :table_layout => :individual || :global # > > :individual being the current behavior > > what about: > > acts_as_versioned :store => :individual || :marshal # > :individual being the current behavior > > instead of marshal, I could think of "simple" > > > > It would be nice to use separate acts for them, but I can''t really > > think of a good name. acts_as_globally_versioned? I''ll have to do > > some research, perhaps these patterns have good names that can be > > used. > > I have thought about that, too, but I don''t think this is a good idea. > Essentially, what you are doing, is simply exchanging the data store for > the versioned objects. I don''t think this deserves a seperate name. > > > Feel free to post patches to the ticket > > (http://dev.rubyonrails.org/ticket/1758) if you''d like to help. Test > > cases are always welcome. Also, I''ve only tested on mysql and > > postgresql so far. > > I would love to, but client work comes first :(. I wish I could come > back to Rails, couldn''t work on my CMS for 3 months now. > > Sascha > > > ------------------------------ > > Message: 12 > Date: Mon, 18 Jul 2005 16:35:22 +0200 > From: Francois Paul <francois-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> > Subject: Re: [Rails] are there any working paypal integration/payment > gems? > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Message-ID: <42DBBE2A.7010101-VKbYeNyhmt9BDgjK7y7TUQ@public.gmane.org> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > thanks, > i''ll check that out. > > *:f*rancois > > Sascha Ebach wrote: > > > I have no success stories, but a simple > > > > $ gem install payment > > Attempting local installation of ''payment'' > > Local gem file not found: payment*.gem > > Attempting remote installation of ''payment'' > > Updating Gem source index for: http://gems.rubyforge.org > > Successfully installed payment-1.0.1 > > Installing RDoc documentation for payment-1.0.1... > > > > did it for me ;) > > > > Sascha > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > ------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > End of Rails Digest, Vol 10, Issue 192 > ************************************** > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Chris Boone http://hypsometry.com/ : website edification http://uvlist.org/ : free classifieds for the Upper Valley
Scott Barron
2005-Jul-18 15:40 UTC
Re: To the rails community, please accept my apology for the inappropriate earlier mail sent
On Jul 18, 2005, at 11:36 AM, Chris Boone wrote:> Dude, I don''t know why everyone''s getting so mad at you -- you''re the > funniest thing going on in my world this Monday morning.... > > Ignorance must surely be *bliss*.... > > :)Both of you have just sent the entirety of the last 12 messages to the list back to the list again. Please stop. -Scott
John Wilger
2005-Jul-18 18:48 UTC
Re: To the rails community, please accept my apology for the inappropriate earlier mail sent
On 7/18/05, Scott Barron <scott-HDQKq3lYuGDk1uMJSBkQmQ@public.gmane.org> wrote:> Both of you have just sent the entirety of the last 12 messages to the > list back to the list again. Please stop.+1 -- Regards, John Wilger ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don''t know," Alice answered. "Then," said the cat, "it doesn''t matter." - Lewis Carrol, Alice in Wonderland
Benjamin Jackson
2005-Jul-18 23:03 UTC
Re: To the rails community, please accept my apology for the inappropriate earlier mail sent
+1 as well. I think this might be the appropriate moment to suggest this link: http://www.catb.org/~esr/faqs/smart-questions.html Let''s see if we can end this thread with that :) Ben On Jul 18, 2005, at 3:48 PM, John Wilger wrote:> On 7/18/05, Scott Barron <scott-HDQKq3lYuGDk1uMJSBkQmQ@public.gmane.org> wrote: >> Both of you have just sent the entirety of the last 12 messages to the >> list back to the list again. Please stop. > > +1___________________ Ben Jackson Diretor de Desenvolvimento ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org http://www.incomumdesign.com
Robin Bowes
2005-Jul-21 16:02 UTC
Re: To the rails community, please accept my apology for the inappropriate earlier mail sent
Benjamin Jackson wrote:> +1 as well. > > I think this might be the appropriate moment to suggest this link: > http://www.catb.org/~esr/faqs/smart-questions.html > > Let''s see if we can end this thread with that :)Nope, we can''t. ;) R. -- http://robinbowes.com If a man speaks in a forest, and his wife''s not there, is he still wrong?