From ryan at mountainshows.com Fri Jun 1 15:01:42 2007 From: ryan at mountainshows.com (Ryan Grow) Date: Fri, 1 Jun 2007 13:01:42 -0600 Subject: [Boulder-Denver Ruby Group] can html content be filtered before it is sent back to the client? Message-ID: <19eed7f80706011201y21617c7ej46b116c0d53ac6d1@mail.gmail.com> Hi, I have a requirement to remove some whitespace and newlines from html generated by ruby templates, before it goes back to the client. It seems to be pretty hard to control placement of newlines at the template level. Is there a "filter hook" of some sort that can remove unwanted characters after the html has been created but before its passed back to the web server? Thanks, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070601/9bf0fa3a/attachment.html From kevwil at gmail.com Fri Jun 1 16:28:38 2007 From: kevwil at gmail.com (Kevin Williams) Date: Fri, 1 Jun 2007 14:28:38 -0600 Subject: [Boulder-Denver Ruby Group] can html content be filtered before it is sent back to the client? In-Reply-To: <19eed7f80706011201y21617c7ej46b116c0d53ac6d1@mail.gmail.com> References: <19eed7f80706011201y21617c7ej46b116c0d53ac6d1@mail.gmail.com> Message-ID: <683a886f0706011328y5db7d1b0m57fdc8d4069c35da@mail.gmail.com> A Mongrel handler could do it, I would imagine. On 6/1/07, Ryan Grow wrote: > Hi, > > I have a requirement to remove some whitespace and newlines from html > generated by ruby templates, before it goes back to the client. > > It seems to be pretty hard to control placement of newlines at the template > level. Is there a "filter hook" of some sort that can remove unwanted > characters after the html has been created but before its passed back to the > web server? > > Thanks, > > Ryan > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -- Cheers, Kevin Williams http://www.almostserio.us/ "If you don't think carefully, you might think that programming is just typing statements in a programming language." - Ward Cunningham "Any sufficiently advanced technology is indistinguishable from Magic." - Arthur C. Clarke From ara.t.howard at gmail.com Fri Jun 1 17:59:56 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Fri, 1 Jun 2007 15:59:56 -0600 Subject: [Boulder-Denver Ruby Group] can html content be filtered before it is sent back to the client? In-Reply-To: <19eed7f80706011201y21617c7ej46b116c0d53ac6d1@mail.gmail.com> References: <19eed7f80706011201y21617c7ej46b116c0d53ac6d1@mail.gmail.com> Message-ID: On Jun 1, 2007, at 1:01 PM, Ryan Grow wrote: > Hi, > > I have a requirement to remove some whitespace and newlines from > html generated by ruby templates, before it goes back to the client. > > It seems to be pretty hard to control placement of newlines at the > template level. Is there a "filter hook" of some sort that can > remove unwanted characters after the html has been created but > before its passed back to the web server? this can be configured in apache quite easily. to test our theory you could always do buf = render_to_string ... transform buf render :text => buf which is down, dirty, and done today. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070601/802db989/attachment.html From jameson.watts at gmail.com Sat Jun 2 13:47:30 2007 From: jameson.watts at gmail.com (Jameson Watts) Date: Sat, 2 Jun 2007 11:47:30 -0600 Subject: [Boulder-Denver Ruby Group] Ruby Tuesday... Message-ID: ...we at ID345 have decided there just isn't enough Ruby in Colorado so we'd like to sponsor a gathering at our (almost finished) warehouse in Denver. On Tuesday, June 5th ID345 will begin a monthly Ruby and Rails developer group (Ruby Tuesdays) as well as a Flash/Flex/RIA developer group (Actionscript Society). These events will happen simultaneously in each of our conference areas the first Tuesday of every month (forever and ever) with before and after mingling. These events will be free and open to the public. Come one, come all. **The big red warehouse** June 5th, 6:00pm @ ID345 2930 Larimer St. Denver CO 80205 Contact: Danny Newman dnewman at gmail dot com http://www.id345.com/ruby P.S. Free pizza, pop, and one of our founders (Austin) is preparing to make his "famous" Ruby Red Greyhounds. Yum. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070602/4e9e3166/attachment.html From david at collectiveintellect.com Sat Jun 2 18:09:01 2007 From: david at collectiveintellect.com (David Clements) Date: Sat, 2 Jun 2007 16:09:01 -0600 Subject: [Boulder-Denver Ruby Group] Ruby Tuesday... In-Reply-To: References: Message-ID: <6A66D256-2C0E-4FC9-A260-4482AD6E311F@collectiveintellect.com> Do you guys know there is all-ready a Denver Rails Group? http://groups.google.com/group/derailed They have great talks! Seems like we are a small enough group to not fracture into two groups within blocks of each other. Maybe you guys can sponsor Derailed? I think they lost their sponsor awhile back. Dave On Jun 2, 2007, at 11:47 AM, Jameson Watts wrote: > ...we at ID345 have decided there just isn't enough Ruby in > Colorado so we'd like to sponsor a gathering at our (almost > finished) warehouse in Denver. > > On Tuesday, June 5th ID345 will begin a monthly Ruby and Rails > developer group (Ruby Tuesdays) as well as a Flash/Flex/RIA > developer group (Actionscript Society). These events will happen > simultaneously in each of our conference areas the first Tuesday of > every month (forever and ever) with before and after mingling. > These events will be free and open to the public. Come one, come all. > > **The big red warehouse** > > June 5th, 6:00pm > @ ID345 2930 Larimer St. Denver CO 80205 > Contact: Danny Newman dnewman at gmail dot com > http://www.id345.com/ruby > > P.S. Free pizza, pop, and one of our founders (Austin) is preparing > to make his "famous" Ruby Red Greyhounds. Yum. > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070602/f6c5927b/attachment.html From ray.hunter at gmail.com Sat Jun 2 23:34:18 2007 From: ray.hunter at gmail.com (ray hunter) Date: Sat, 2 Jun 2007 21:34:18 -0600 Subject: [Boulder-Denver Ruby Group] Ruby Tuesday... In-Reply-To: <6A66D256-2C0E-4FC9-A260-4482AD6E311F@collectiveintellect.com> References: <6A66D256-2C0E-4FC9-A260-4482AD6E311F@collectiveintellect.com> Message-ID: <607412b50706022034x6d56e97foe63ef6244de1d837@mail.gmail.com> on the same point: are you aware that there is already a Colorado Flash/Flex meetup on Tuesday nights: http://flash.meetup.com/116/calendar/5731633/ To second David's thoughts, it's difficult enough to attend the user groups that I enjoy, in between family time and work, why are we fracturing our local groups? i sure wish you would've picked a different night. _Ray On 6/2/07, David Clements wrote: > > Do you guys know there is all-ready a Denver Rails Group? > http://groups.google.com/group/derailed They have great talks! > > Seems like we are a small enough group to not fracture into two groups > within blocks of each other. > > Maybe you guys can sponsor Derailed? I think they lost their sponsor > awhile back. > > Dave > > > On Jun 2, 2007, at 11:47 AM, Jameson Watts wrote: > > ...we at ID345 have decided there just isn't enough Ruby in Colorado so > we'd like to sponsor a gathering at our (almost finished) warehouse in > Denver. > > On Tuesday, June 5th ID345 will begin a monthly Ruby and Rails developer > group (Ruby Tuesdays) as well as a Flash/Flex/RIA developer group > (Actionscript Society). These events will happen simultaneously in each of > our conference areas the first Tuesday of every month (forever and ever) > with before and after mingling. These events will be free and open to the > public. Come one, come all. > > **The big red warehouse** > > June 5th, 6:00pm > @ ID345 2930 Larimer St. Denver CO 80205 > Contact: Danny Newman dnewman at gmail dot com > http://www.id345.com/ruby > > P.S. Free pizza, pop, and one of our founders (Austin) is preparing to > make his "famous" Ruby Red Greyhounds. Yum. > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > > > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070602/3ac6948b/attachment-0001.html From mghaught at gmail.com Sun Jun 3 01:03:51 2007 From: mghaught at gmail.com (Marty Haught) Date: Sat, 2 Jun 2007 23:03:51 -0600 Subject: [Boulder Ruby Group] BRG - June Meeting - Jun 20th Message-ID: <57f29e620706022203w669333achf80fca9a83cc721@mail.gmail.com> Hello Everyone, First, we have our June meeting scheduled for Wednesday the 20th at 6:30pm. We'll begin the meeting with a RailsConf 2007 reflection. Several of us that attended the conference will present our thoughts on the conference. Any of you who attended are invited to come on up to Boulder and share with us. The second part of the meeting will be a presentation on full text search from Ruby by Lee Marlow. Collective Intellect will provide food as usual and we'll have a short break between the talks for mingling. It should be a good time so I hope to see you all out there. Second, I have been working on a REAL website for the group. It's still in progress but I figured I'll release it to you all. Look for us to flesh out different sections of the site over the coming months. If you have any comments/feedback on the site or section/information that is sorely lacking, please let either Tim or I know. We'll still post meeting announcements to the list but this site will hold all the current information. While we'll continue to use the RubyForge project, please direct your web queries to the new site. The url is http://boulderruby.org. Finally, we're going to drop the Denver part of our name. When I decided to start this group back in 2005 there were no other Ruby/Rails groups meeting in the area. Our first meeting was scheduled for the first week after the Pragmatic's RailsStudio in Denver in January 2006. Derailed formed from the group and they've got Denver covered nicely. It was also my ideal to have the group meet between Boulder and Denver and while our initial meetings were near Broomfield on Hwy 36, that didn't last long. I don't foresee us leaving Boulder anytime in the future so it seemed simpler to just be the Boulder Ruby Group. That's what we'll be from now on. We, of course, still welcome anyone from anywhere to come hang out with us. We have members from all over the Front Range as well as some out of state guests from time to time. We're a friendly, laid-back group but then again most of you already know that. ;) Cheers, Marty From forruby101 at yahoo.com Sun Jun 3 08:42:00 2007 From: forruby101 at yahoo.com (Erin ruby) Date: Sun, 3 Jun 2007 05:42:00 -0700 (PDT) Subject: [Boulder Ruby Group] Ruby Tuesday Message-ID: <90663.70458.qm@web38408.mail.mud.yahoo.com> I actually did not know there was a Denver Ruby Group that had regular meetings. Kind of surprised, because I would have thought there would have been. I have done my share of whining about it. J It is actually difficult for me to get to boulder for the meetings, so the news that there is already a Denver Ruby Group is elating to me. On the idea that there are two Denver Ruby Groups, I really don?t care just as long as I can attend either of the meetings. I would be happy. Of course if you decided to consolidate your efforts I would be happy as well. Please just steer clear of the Java Users Group Meeting on Wednesday?s, which I think is the second Wednesday of the month. Look forward to seeing some of you, Larry --------------------------------- Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070603/6aa5ca3f/attachment.html From david at collectiveintellect.com Sun Jun 3 10:24:23 2007 From: david at collectiveintellect.com (David Clements) Date: Sun, 3 Jun 2007 08:24:23 -0600 Subject: [Boulder Ruby Group] BRG - June Meeting - Jun 20th In-Reply-To: <57f29e620706022203w669333achf80fca9a83cc721@mail.gmail.com> References: <57f29e620706022203w669333achf80fca9a83cc721@mail.gmail.com> Message-ID: We should think about putting a widget on the ruby group website. I have been working on the topic net and themes with the intention of creating an Auto Filled Blog, but the widget and its splash page is pretty much the same thing. Dave On Jun 2, 2007, at 11:03 PM, Marty Haught wrote: > Hello Everyone, > > First, we have our June meeting scheduled for Wednesday the 20th at > 6:30pm. We'll begin the meeting with a RailsConf 2007 reflection. > Several of us that attended the conference will present our thoughts > on the conference. Any of you who attended are invited to come on up > to Boulder and share with us. The second part of the meeting will be > a presentation on full text search from Ruby by Lee Marlow. > Collective Intellect will provide food as usual and we'll have a short > break between the talks for mingling. It should be a good time so I > hope to see you all out there. > > Second, I have been working on a REAL website for the group. It's > still in progress but I figured I'll release it to you all. Look for > us to flesh out different sections of the site over the coming months. > If you have any comments/feedback on the site or section/information > that is sorely lacking, please let either Tim or I know. We'll still > post meeting announcements to the list but this site will hold all the > current information. While we'll continue to use the RubyForge > project, please direct your web queries to the new site. The url is > http://boulderruby.org. > > Finally, we're going to drop the Denver part of our name. When I > decided to start this group back in 2005 there were no other > Ruby/Rails groups meeting in the area. Our first meeting was > scheduled for the first week after the Pragmatic's RailsStudio in > Denver in January 2006. Derailed formed from the group and they've > got Denver covered nicely. It was also my ideal to have the group > meet between Boulder and Denver and while our initial meetings were > near Broomfield on Hwy 36, that didn't last long. I don't foresee us > leaving Boulder anytime in the future so it seemed simpler to just be > the Boulder Ruby Group. That's what we'll be from now on. We, of > course, still welcome anyone from anywhere to come hang out with us. > We have members from all over the Front Range as well as some out of > state guests from time to time. We're a friendly, laid-back group but > then again most of you already know that. ;) > > Cheers, > Marty > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members From david at collectiveintellect.com Sun Jun 3 10:26:56 2007 From: david at collectiveintellect.com (David Clements) Date: Sun, 3 Jun 2007 08:26:56 -0600 Subject: [Boulder Ruby Group] BRG - June Meeting - Jun 20th In-Reply-To: References: <57f29e620706022203w669333achf80fca9a83cc721@mail.gmail.com> Message-ID: Oops. Didn't mean to CC the group there. I'll let you guys wonder what the "Widget" is for awhile. ;) Dave On Jun 3, 2007, at 8:24 AM, David Clements wrote: > We should think about putting a widget on the ruby group website. I > have been working on the topic net and themes with the intention of > creating an Auto Filled Blog, but the widget and its splash page is > pretty much the same thing. > > Dave > > On Jun 2, 2007, at 11:03 PM, Marty Haught wrote: > >> Hello Everyone, >> >> First, we have our June meeting scheduled for Wednesday the 20th at >> 6:30pm. We'll begin the meeting with a RailsConf 2007 reflection. >> Several of us that attended the conference will present our thoughts >> on the conference. Any of you who attended are invited to come on up >> to Boulder and share with us. The second part of the meeting will be >> a presentation on full text search from Ruby by Lee Marlow. >> Collective Intellect will provide food as usual and we'll have a >> short >> break between the talks for mingling. It should be a good time so I >> hope to see you all out there. >> >> Second, I have been working on a REAL website for the group. It's >> still in progress but I figured I'll release it to you all. Look for >> us to flesh out different sections of the site over the coming >> months. >> If you have any comments/feedback on the site or section/information >> that is sorely lacking, please let either Tim or I know. We'll still >> post meeting announcements to the list but this site will hold all >> the >> current information. While we'll continue to use the RubyForge >> project, please direct your web queries to the new site. The url is >> http://boulderruby.org. >> >> Finally, we're going to drop the Denver part of our name. When I >> decided to start this group back in 2005 there were no other >> Ruby/Rails groups meeting in the area. Our first meeting was >> scheduled for the first week after the Pragmatic's RailsStudio in >> Denver in January 2006. Derailed formed from the group and they've >> got Denver covered nicely. It was also my ideal to have the group >> meet between Boulder and Denver and while our initial meetings were >> near Broomfield on Hwy 36, that didn't last long. I don't foresee us >> leaving Boulder anytime in the future so it seemed simpler to just be >> the Boulder Ruby Group. That's what we'll be from now on. We, of >> course, still welcome anyone from anywhere to come hang out with us. >> We have members from all over the Front Range as well as some out of >> state guests from time to time. We're a friendly, laid-back group >> but >> then again most of you already know that. ;) >> >> Cheers, >> Marty >> _______________________________________________ >> Bdrg-members mailing list >> Bdrg-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/bdrg-members > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members From ara.t.howard at gmail.com Sun Jun 3 14:59:44 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Sun, 3 Jun 2007 12:59:44 -0600 Subject: [Boulder Ruby Group] BRG - June Meeting - Jun 20th In-Reply-To: References: <57f29e620706022203w669333achf80fca9a83cc721@mail.gmail.com> Message-ID: <3F14CA61-C946-46DA-A20A-9B2FAB21EC8C@gmail.com> On Jun 3, 2007, at 8:26 AM, David Clements wrote: > Oops. Didn't mean to CC the group there. I'll let you guys wonder > what the "Widget" is for awhile. > ;) > > Dave rachelle told us all about it! -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama From timrohde2000 at yahoo.com Mon Jun 4 11:04:27 2007 From: timrohde2000 at yahoo.com (Tim Rohde) Date: Mon, 4 Jun 2007 09:04:27 -0600 Subject: [Boulder Ruby Group] Adhearsion - Jay Phillips In-Reply-To: References: Message-ID: Hey folks, I've been talking with Jay Phillips (the Adhearsion guy). His job in Portland fell through. If there was ever a thought to supporting Adhearsion with a donation, now is the time. Also, he's looking for work (hopefully centered on Adhearsion). I've offered to be his host down hear for a few weeks starting later this month so there is a good chance he'll be in town! I hope this post isn't inappropriate.... Thanks, Tim Rohde Home Office: 303-443-0449 Cell Phone: 310-592-6581 timrohde2000 at yahoo.com From lisas at protechtraining.com Fri Jun 8 07:25:51 2007 From: lisas at protechtraining.com (Lisa Stebbing) Date: Fri, 08 Jun 2007 06:25:51 -0500 Subject: [Boulder Ruby Group] Ruby on Rails TDD Bootcamp Message-ID: <20070608113839.5D50C5240A62@rubyforge.org> Good Morning- I am an Account Manager with ProTech Training. I am excited to announce that we've partnered with Obtiva (www.obtiva.com) to bring best of breed software development training to the Denver area. The following classes are now available: Ruby on Rails TDD Bootcamp, Sept 24-27 This 4-day intensive course takes students on a journey through a Ruby refresher, Ruby on Rails, Ajax, and Test-Driven Development. You will walk away with the knowledge and skills required to rapidly deliver high-quality Rails Web applications. Agile Project Management, July 12-13 This course provides the missing link between Extreme Programming, and other developer-level agile practices, and the rigorous project management that is required to ensure project success. By using practical exercises and case studies, students will master agile project management tools and practices including the User Story, Iteration and Release Planning, Product Vision Box, Project Data Sheet, Unit and Acceptance Testing, and Value Stream Mapping. Additional programs are available in Denver. You can learn more about ProTech at www.protechtraining.com. I am so very excited about our relationship with Obtiva, and bringing these classes to the Denver market, and truly want them to be successful. Please feel free to share this information with other folks that might have an interest. For additional information or to register for classes, please contact Lisa Stebbing at lstebbing at protechtraining.com or via phone at 800.373.9188, ext. 138. Online registrations can also be accepted for Ruby at http://www.obtiva.com/index.php?page=rails_course. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070608/90c45ec9/attachment.html From mghaught at gmail.com Tue Jun 19 10:05:48 2007 From: mghaught at gmail.com (Marty Haught) Date: Tue, 19 Jun 2007 10:05:48 -0400 Subject: [Boulder Ruby Group] BRG - June Meeting - June 20th Reminder Message-ID: <57f29e620706190705m644f1b69h9d08dde3912300a2@mail.gmail.com> Hi Everyone, Here's the friendly reminder about our June Boulder Ruby group meeting. We'll be meeting this Wednesday, the 20th, at 6:30pm in our usual digs (directions below). We'll begin the meeting with a RailsConf 2007 reflection. Several of us that attended the conference will present our thoughts on the conference. We'll have a break for mingling and food before starting the second half of the meeting. Afterwards Lee Marlow will do a presentation on full text search from Ruby. I look forward to seeing you all there. Cheers, Marty Directions: Collective Intellect 1414 Pearl St., Suite 200 Boulder, CO 80302 It is located on the East end of the walking mall above a store called "Baby Doll" on the South side. The Collective Intellect name is on the door of a stairway leading up to the office. URL to google maps: http://rubyurl.com/QO7 From ara.t.howard at gmail.com Fri Jun 29 00:26:43 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Thu, 28 Jun 2007 22:26:43 -0600 Subject: [Boulder Ruby Group] rendering now! Message-ID: i hope i am doing something stupid and someone has a slicker way http://drawohara.tumblr.com/post/4517961 ?? -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama From tony at clickcaster.com Fri Jun 29 00:32:54 2007 From: tony at clickcaster.com (Tony Arcieri) Date: Thu, 28 Jun 2007 22:32:54 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: Message-ID: Filters, which prevent the action from ever being executed in the first place, are the typical solution to that problem (if I'm reading it correctly) -- Tony Arcieri ClickCaster, Inc. On 6/28/07, ara.t.howard wrote: > > i hope i am doing something stupid and someone has a slicker way > > http://drawohara.tumblr.com/post/4517961 > > ?? > > -a > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama > > > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > From bruce at codefluency.com Fri Jun 29 01:00:47 2007 From: bruce at codefluency.com (Bruce Williams) Date: Thu, 28 Jun 2007 23:00:47 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: Message-ID: I'd agree with Tony here, Ara. Authentication is generally handled as a filter (vs explicitly calling it from an action) -- lots of bonuses with doing it this way, since on a single line (before_filter :authenticate :only => [:foo, :bar]) you can get a bird's eye view of security within a controller, and it looks/feels better [at least to me]. If you need to render a specific 'access denied' page, you should be able to render and then return false from the filter, or do a redirection. Cheers, Bruce -- Bruce Williams http://codefluency.com On 6/28/07, Tony Arcieri wrote: > > Filters, which prevent the action from ever being executed in the > first place, are the typical solution to that problem (if I'm reading > it correctly) > > -- > Tony Arcieri > ClickCaster, Inc. > > On 6/28/07, ara.t.howard wrote: > > > > i hope i am doing something stupid and someone has a slicker way > > > > http://drawohara.tumblr.com/post/4517961 > > > > ?? > > > > -a > > -- > > we can deny everything, except that we have the possibility of being > > better. simply reflect on that. > > h.h. the 14th dalai lama > > > > > > > > _______________________________________________ > > Bdrg-members mailing list > > Bdrg-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/bdrg-members > > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070628/522c9b7d/attachment.html From ara.t.howard at gmail.com Fri Jun 29 01:07:52 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Thu, 28 Jun 2007 23:07:52 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: Message-ID: On Jun 28, 2007, at 11:00 PM, Bruce Williams wrote: > I'd agree with Tony here, Ara. > > Authentication is generally handled as a filter (vs explicitly > calling it from an action) -- lots of bonuses with doing it this > way, since on a single line (before_filter :authenticate :only => > [:foo, :bar]) you can get a bird's eye view of security within a > controller, and it looks/feels better [at least to me]. > for the simple case i agree. in fact this method was designed to be used in a filter. > If you need to render a specific 'access denied' page, you should > be able to render and then return false from the filter, or do a > redirection. > which is exactly what i was doing... more generally looking for a way to find a way to abstract bits of logic that might render and re-use them without resorting to testing return codes... hope austin is treating you well! -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070628/c14550c8/attachment.html From brian at heimidal.net Fri Jun 29 01:32:37 2007 From: brian at heimidal.net (Brian Rose) Date: Thu, 28 Jun 2007 23:32:37 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: Message-ID: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> I might be misunderstanding, but if the problem is a double render, just return the render: before_filter :authenticate def authenticate self.current_user ||= (session[:user] && User.find_by_id(session[:user])) || false return redirect_to(login_path) unless current_user end On 6/28/07, ara.t.howard wrote: > > > i hope i am doing something stupid and someone has a slicker way > > http://drawohara.tumblr.com/post/4517961 > > ?? > > -a > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama > > > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -- Brian 'Heimidal' Rose brian at heimidal.net http://www.heimidal.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070628/1b7a1983/attachment.html From ara.t.howard at gmail.com Fri Jun 29 01:37:27 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Thu, 28 Jun 2007 23:37:27 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> References: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> Message-ID: On Jun 28, 2007, at 11:32 PM, Brian Rose wrote: > I might be misunderstanding, but if the problem is a double render, > just return the render: > > > before_filter :authenticate > > def authenticate > self.current_user ||= (session[:user] && User.find_by_id(session > [:user])) || false > return redirect_to(login_path) unless current_user > end that's precisely how i ended up double rendering while testing my code ;-) def action_that_needs_authentication authenticate render end cheers. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070628/5948af60/attachment.html From bruce at codefluency.com Fri Jun 29 02:13:52 2007 From: bruce at codefluency.com (Bruce Williams) Date: Fri, 29 Jun 2007 00:13:52 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> Message-ID: Ara, The filter needs to return false to stop the action dispatch. Here's a working example (just played with it): --snip-- class FoosController < ApplicationController before_filter :authenticate def index # won't get here end ####### private ####### def can_find_account # stub, use some method that's useful return false end def authenticate unless can_find_account render :template => 'shared/access_denied' return false end end end --snip-- I generally like rendering directly vs redirection in these cases. Cheers, Bruce --- Bruce Williams http://codefluency.com On 6/28/07, ara.t.howard wrote: > > > On Jun 28, 2007, at 11:32 PM, Brian Rose wrote: > > I might be misunderstanding, but if the problem is a double render, just > return the render: > > before_filter :authenticate > > > def authenticate > self.current_user ||= (session[:user] && User.find_by_id(session[:user])) > || false > return redirect_to(login_path) unless current_user > end > > > > > > that's precisely how i ended up double rendering while testing my code ;-) > > > def action_that_needs_authentication > authenticate > render > end > > > > > cheers. > > > -a > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama > > > > > > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070629/58d1d1d6/attachment-0001.html From ara.t.howard at gmail.com Fri Jun 29 02:35:53 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Fri, 29 Jun 2007 00:35:53 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> Message-ID: On Jun 29, 2007, at 12:13 AM, Bruce Williams wrote: > Ara, > > The filter needs to return false to stop the action dispatch. > > Here's a working example (just played with it): > > --snip-- > class FoosController < ApplicationController > > before_filter :authenticate > > def index > # won't get here > end > > ####### > private > ####### > > def can_find_account # stub, use some method that's useful > return false > end > > def authenticate > unless can_find_account > render :template => 'shared/access_denied' > return false > end > end > > end > --snip-- > cool - the return false was the key. > I generally like rendering directly vs redirection in these cases. yeah - that's totally where i'm at too. thanks a bunch! -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070629/0ad02add/attachment.html From tony at clickcaster.com Sat Jun 30 01:54:10 2007 From: tony at clickcaster.com (Tony Arcieri) Date: Fri, 29 Jun 2007 23:54:10 -0600 Subject: [Boulder Ruby Group] Anyone else see this? Message-ID: http://m.onkey.org/2007/6/30/let-s-start-with-wtf Just did my own little test... ~$ irb -rbenchmark -rubygems -ractive_support >> class Fixnum; def timestwo; self * 2; end; end => nil >> puts Benchmark.measure { (1..10000000).map { |n| n.timestwo } } 13.570000 0.100000 13.670000 ( 13.795564) => nil >> puts Benchmark.measure { (1..10000000).map(&:timestwo) } 48.370000 0.080000 48.450000 ( 48.517666) => nil Yikes -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070629/0bd36c24/attachment.html From bruce at codefluency.com Sat Jun 30 02:15:21 2007 From: bruce at codefluency.com (Bruce Williams) Date: Sat, 30 Jun 2007 00:15:21 -0600 Subject: [Boulder Ruby Group] Anyone else see this? In-Reply-To: References: Message-ID: Tony, Oh, yeah, definitely seen that before. Array#shift, etc in ActiveSupport's Symbol#to_proc definitely seems to hurt for something of this scale. I'm really looking forward to the native support we'll see with 1.9. Bruce On 6/29/07, Tony Arcieri wrote: > http://m.onkey.org/2007/6/30/let-s-start-with-wtf > > Just did my own little test... > > ~$ irb -rbenchmark -rubygems -ractive_support > >> class Fixnum; def timestwo; self * 2; end; end > => nil > >> puts Benchmark.measure { (1..10000000).map { |n| n.timestwo } } > 13.570000 0.100000 13.670000 ( 13.795564) > => nil > >> puts Benchmark.measure { (1..10000000).map(&:timestwo) } > 48.370000 0.080000 48.450000 ( 48.517666) > => nil > > Yikes > > -- > Tony Arcieri > ClickCaster, Inc. > tony at clickcaster.com > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members > -- --- Bruce Williams http://codefluency.com From ara.t.howard at gmail.com Sat Jun 30 02:42:12 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Sat, 30 Jun 2007 00:42:12 -0600 Subject: [Boulder Ruby Group] Anyone else see this? In-Reply-To: References: Message-ID: On Jun 29, 2007, at 11:54 PM, Tony Arcieri wrote: > http://m.onkey.org/2007/6/30/let-s-start-with-wtf > > Just did my own little test... > > ~$ irb -rbenchmark -rubygems -ractive_support > >> class Fixnum; def timestwo; self * 2; end; end > => nil > >> puts Benchmark.measure { (1..10000000).map { |n| n.timestwo } } > 13.570000 0.100000 13.670000 ( 13.795564) > => nil > >> puts Benchmark.measure { (1..10000000).map(&:timestwo) } > 48.370000 0.080000 48.450000 ( 48.517666) > => nil > > Yikes > > -- > Tony Arcieri > ClickCaster, Inc. > tony at clickcaster.com > _______________________________________________ > Bdrg-members mailing list > Bdrg-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/bdrg-members less capable. cfp:~ > cat a.rb require 'benchmark' class Symbol def to_proc lambda{|obj| obj.send self} end end n = 10000 s = Struct.new :id messages = [] n.times { messages << s.new(:id => rand(n)) } Benchmark.bm do |x| # Integer x.report { n.times { messages.map{|m| m.id} } } x.report { n.times { messages.map(&:id) } } end cfp:~ > ruby a.rb user system total real 31.160000 1.200000 32.360000 ( 33.135435) 40.640000 1.380000 42.020000 ( 43.270193) -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070630/fdbc9c9f/attachment.html From bothari at gmail.com Sat Jun 30 10:08:44 2007 From: bothari at gmail.com (Bothari) Date: Sat, 30 Jun 2007 09:08:44 -0500 Subject: [Boulder Ruby Group] Resume - Joe Fair Message-ID: Group, My name is Joe Fair, and I am a software developer with 10 years experience. Most of that time has been doing Java for Solaris with Oracle. I have been working with Ruby for the last year and a half. I went to the first Rails Studio in Denver, and later I wrote a book about using Ruby and PayPal. (http://pragmaticprogrammer.com/titles/jfpaypal/index.html) I would like to find a position where I can develop in Ruby full time. However, I have high standards for my next position. I want to work where I can be challenged to be a better software engineer. I want to work with people who know about, and use, unit testing, software process, and design patterns. I want to work on software I can be passionate about, not embarrassed about. If this sounds like a good fit for your team, please let me know. Thanks, Joe -------------- next part -------------- A non-text attachment was scrubbed... Name: JoeFair_resume_0704.pdf Type: application/pdf Size: 16492 bytes Desc: not available Url : http://rubyforge.org/pipermail/bdrg-members/attachments/20070630/dbdd41a7/attachment-0001.pdf From ara.t.howard at gmail.com Sat Jun 30 11:43:46 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Sat, 30 Jun 2007 09:43:46 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> Message-ID: On Jun 29, 2007, at 12:13 AM, Bruce Williams wrote: > Ara, > > The filter needs to return false to stop the action dispatch. > > Here's a working example (just played with it): the summary: http://drawohara.tumblr.com/post/4627267 cheers. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070630/61f5da5b/attachment.html From bruce at codefluency.com Sat Jun 30 12:01:21 2007 From: bruce at codefluency.com (Bruce Williams) Date: Sat, 30 Jun 2007 10:01:21 -0600 Subject: [Boulder Ruby Group] rendering now! In-Reply-To: References: <8d046e100706282232y2448b04au17c0764c44e73645@mail.gmail.com> Message-ID: Ara, Nice writeup. I agree that something like render! would be useful in edge cases (I hit double renders once in a very big blue moon) -- but in this case, with all respects to your DRY skills and to Doug's opinions, I still hold a filter is the best approach to the problem, and is surely cleaner. As to Doug's second issue; it's not something I've ever encountered in my memory -- and since both of us have been using Rails for a "long time" (as these things are measured), that's probably simply because we approach problems differently. In fact, I rarely need to render two different templates for an action, though your authentication example is an exception. Cheers, Bruce On 6/30/07, ara.t.howard wrote: > > > On Jun 29, 2007, at 12:13 AM, Bruce Williams wrote: > Ara, > > The filter needs to return false to stop the action dispatch. > > Here's a working example (just played with it): > > > > the summary: > > http://drawohara.tumblr.com/post/4627267 > > cheers. > > -a > -- > we can deny everything, except that we have the possibility of being better. > simply reflect on that. > h.h. the 14th dalai lama > > > > -- --- Bruce Williams http://codefluency.com From shackletj at yahoo.com Sat Jun 30 14:10:50 2007 From: shackletj at yahoo.com (Justin Shacklette) Date: Sat, 30 Jun 2007 11:10:50 -0700 (PDT) Subject: [Boulder Ruby Group] Boulder hosting In-Reply-To: Message-ID: <938788.89531.qm@web32910.mail.mud.yahoo.com> Rubists, Can anyone recommend a quality Boulder area hosting company that knows what's up and can host both Ruby and PHP? I'd like to have options from a vanilla $9.99 package to managed hosting on a dedicated server. Denver area is okay too, but Boulder is preferred. -Justin ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front