From hutch at recursive.ca Sat Jun 2 10:35:16 2007 From: hutch at recursive.ca (Bob Hutchison) Date: Sat, 2 Jun 2007 10:35:16 -0400 Subject: Sample Merb App In-Reply-To: <858A620D-4639-40E1-9797-0F93D3FE2D9B@engineyard.com> References: <33841ac70705302200m704ad5fct2f067291f1e6c552@mail.gmail.com> <858A620D-4639-40E1-9797-0F93D3FE2D9B@engineyard.com> Message-ID: Hi Ezra, How do I keep track of the work you are doing? I'm more than a little interested. I see we are up to 0.3.4 (the last I heard of was 0.3.1). I don't see a changelog. One thing, somewhere in there the class RouteMatcher got replaced by Router. Simple enough, and it definitely fails early... BTW, xml-simple is a dependency now, so likely should be mentioned in the README. Cheers, Bob On 31-May-07, at 3:34 AM, Ezra Zygmuntowicz wrote: > > On May 30, 2007, at 10:00 PM, Zack Chandler wrote: > >> I put together a sample app to help people learn Merb: >> http://svn.depixelate.com/applications/invoice_tracker/ >> >> I also blogged about it here: >> http://depixelate.com/2007/5/31/taking-merb-for-a-spin >> >> -- >> Zack Chandler >> http://depixelate.com > > Zack- > > That's kick ass, thanks for doing that! Dave Goodlad did some really > nice work on adding a route generator to merb. I spent some time and > integrated it into merb trunk. > > So if you drop into merb -i console you have a show_routes method > available and also a url method. The url method is also available in > your controllers and views. Note that there is a slight change to the > router definition in router.rb due to the routing refactor. > > # router.rb > # note you need top use Merb::Router instead of Merb::RouteMatcher > now: > Merb::Router.prepare do |r| > r.resources :posts do |post| > post.resources :comments > end > r.default_routes > end > > > $ merb -i > merb init called > irb(main):001:0> show_routes > [:edit_comment, "/posts/:post_id/comments/:id/edit"] > [:new_post, "/posts/new"] > [:posts, "/posts"] > [:custom_new_post, "/posts/new/:action"] > [:edit_post, "/posts/:id/edit"] > [:comment, "/posts/:post_id/comments/:id"] > [:post, "/posts/:id"] > [:new_comment, "/posts/:post_id/comments/new"] > [:custom_new_comment, "/posts/:post_id/comments/new/:action"] > [:comments, "/posts/:post_id/comments"] > => nil > irb(main):002:0> url :edit_comment, :post_id => 42, :id => 24 > => "/posts/42/comments/24/edit" > irb(main):003:0> url :posts > => "/posts" > > > Thanks for making your sample app available, I'm sure it will help > people get up to speed in merbland. > > Cheers- > -- Ezra Zygmuntowicz > -- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > > > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel ---- Bob Hutchison -- tumblelog at Recursive Design Inc. -- weblog at -- works at From hutch at recursive.ca Sat Jun 2 10:36:48 2007 From: hutch at recursive.ca (Bob Hutchison) Date: Sat, 2 Jun 2007 10:36:48 -0400 Subject: Sample Merb App In-Reply-To: References: <33841ac70705302200m704ad5fct2f067291f1e6c552@mail.gmail.com> <858A620D-4639-40E1-9797-0F93D3FE2D9B@engineyard.com> Message-ID: <82686DEA-7147-4D59-810A-2D69C6DE23A5@recursive.ca> On 2-Jun-07, at 10:35 AM, Bob Hutchison wrote: > BTW, xml-simple is a dependency now, so likely should be mentioned > in the README. Come to think of it... what are you using that for? Cheers, Bob ---- Bob Hutchison -- tumblelog at Recursive Design Inc. -- weblog at -- works at From ez at engineyard.com Mon Jun 4 19:33:25 2007 From: ez at engineyard.com (Ezra Zygmuntowicz) Date: Mon, 4 Jun 2007 16:33:25 -0700 Subject: Sample Merb App In-Reply-To: References: <33841ac70705302200m704ad5fct2f067291f1e6c552@mail.gmail.com> <858A620D-4639-40E1-9797-0F93D3FE2D9B@engineyard.com> Message-ID: Hey Bob- The best way to keep up is to subscribe to the RSS feed of commits and timeline stuff. http://merb.devjavu.com/projects/merb/timeline? milestone=on&ticket=on&changeset=on&wiki=on&max=50&daysback=90&format=rs s Xml-simple is a dep now so we can POST xml to an action and have the xml parsed into params. Cheers- -Ezra On Jun 2, 2007, at 7:35 AM, Bob Hutchison wrote: > Hi Ezra, > > How do I keep track of the work you are doing? I'm more than a > little interested. I see we are up to 0.3.4 (the last I heard of > was 0.3.1). I don't see a changelog. > > One thing, somewhere in there the class RouteMatcher got replaced > by Router. Simple enough, and it definitely fails early... > > BTW, xml-simple is a dependency now, so likely should be mentioned > in the README. > > Cheers, > Bob > > > On 31-May-07, at 3:34 AM, Ezra Zygmuntowicz wrote: > >> >> On May 30, 2007, at 10:00 PM, Zack Chandler wrote: >> >>> I put together a sample app to help people learn Merb: >>> http://svn.depixelate.com/applications/invoice_tracker/ >>> >>> I also blogged about it here: >>> http://depixelate.com/2007/5/31/taking-merb-for-a-spin >>> >>> -- >>> Zack Chandler >>> http://depixelate.com >> >> Zack- >> >> That's kick ass, thanks for doing that! Dave Goodlad did some really >> nice work on adding a route generator to merb. I spent some time and >> integrated it into merb trunk. >> >> So if you drop into merb -i console you have a show_routes method >> available and also a url method. The url method is also available in >> your controllers and views. Note that there is a slight change to the >> router definition in router.rb due to the routing refactor. >> >> # router.rb >> # note you need top use Merb::Router instead of Merb::RouteMatcher >> now: >> Merb::Router.prepare do |r| >> r.resources :posts do |post| >> post.resources :comments >> end >> r.default_routes >> end >> >> >> $ merb -i >> merb init called >> irb(main):001:0> show_routes >> [:edit_comment, "/posts/:post_id/comments/:id/edit"] >> [:new_post, "/posts/new"] >> [:posts, "/posts"] >> [:custom_new_post, "/posts/new/:action"] >> [:edit_post, "/posts/:id/edit"] >> [:comment, "/posts/:post_id/comments/:id"] >> [:post, "/posts/:id"] >> [:new_comment, "/posts/:post_id/comments/new"] >> [:custom_new_comment, "/posts/:post_id/comments/new/:action"] >> [:comments, "/posts/:post_id/comments"] >> => nil >> irb(main):002:0> url :edit_comment, :post_id => 42, :id => 24 >> => "/posts/42/comments/24/edit" >> irb(main):003:0> url :posts >> => "/posts" >> >> >> Thanks for making your sample app available, I'm sure it will help >> people get up to speed in merbland. >> >> Cheers- >> -- Ezra Zygmuntowicz-- Lead Rails Evangelist >> -- ez at engineyard.com >> -- Engine Yard, Serious Rails Hosting >> -- (866) 518-YARD (9273) >> >> >> _______________________________________________ >> Merb-devel mailing list >> Merb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/merb-devel > > ---- > Bob Hutchison -- tumblelog at www.recursive.ca/so/> > Recursive Design Inc. -- weblog at www.recursive.ca/hutch> > -- works at > > > -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) From boss at topfunky.com Mon Jun 18 23:36:55 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Mon, 18 Jun 2007 20:36:55 -0700 Subject: Default 500 Error Page in Production Message-ID: <15754f7e0706182036s75d451a2x85cce473c5114cbd@mail.gmail.com> Currently, Merb just shows a string on error: "500 Internal Server Error" I've added this to my merb_init.rb: if MERB_ENV == 'production' module Merb def self.html_exception(e) File.read(DIST_ROOT + "/public/500.html") end end end http://nubyonrails.com/500.html Potentially a plugin could be written to log this to the database. However, I think the default in production should be to render a 500.html error page from the public directory. This allows for much easier customization. Objections? Geoffrey Grosenbach ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com From boss at topfunky.com Mon Jun 18 23:42:13 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Mon, 18 Jun 2007 20:42:13 -0700 Subject: Default 500.html Message-ID: <15754f7e0706182042n79a719d8ud5ad39076414ba37@mail.gmail.com> Argh....ignore that last message. It looks like the trunk was already updated to serve public/500.html sometime in the past week. -- Geoffrey Grosenbach ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com From boss at topfunky.com Tue Jun 19 14:44:06 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Tue, 19 Jun 2007 11:44:06 -0700 Subject: Plugin Requirements Message-ID: <15754f7e0706191144v7f152f0kdf73ba581ceee0fb@mail.gmail.com> I like the style of the Merb plugin manager....installing gems straight from RubyForge. However, the current implementation in trunk wants to find an install script and a Rakefile.merb. Many gems would still be useful without this and could be easily packaged with a Merb app for deployment. Right now it wil "rescue nil" if no uninstall script is found, but the others are required. Is there any objection to tweaking the code so it looks for install and rakefile.merb, but doesn't require them for a successful plugin installation? -- Geoffrey Grosenbach ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com From ez at engineyard.com Tue Jun 19 14:51:30 2007 From: ez at engineyard.com (Ezra Zygmuntowicz) Date: Tue, 19 Jun 2007 11:51:30 -0700 Subject: Plugin Requirements In-Reply-To: <15754f7e0706191144v7f152f0kdf73ba581ceee0fb@mail.gmail.com> References: <15754f7e0706191144v7f152f0kdf73ba581ceee0fb@mail.gmail.com> Message-ID: On Jun 19, 2007, at 11:44 AM, Geoffrey Grosenbach wrote: > I like the style of the Merb plugin manager....installing gems > straight from RubyForge. > > However, the current implementation in trunk wants to find an install > script and a Rakefile.merb. Many gems would still be useful without > this and could be easily packaged with a Merb app for deployment. > > Right now it wil "rescue nil" if no uninstall script is found, but the > others are required. > > Is there any objection to tweaking the code so it looks for install > and rakefile.merb, but doesn't require them for a successful plugin > installation? > > > -- > Geoffrey Grosenbach > Geoff- Go for it. The plugin manager is still alpha and is not set in stone yet, Please feel free to improve it ;) Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) From jes at luretanker.no Wed Jun 20 07:42:23 2007 From: jes at luretanker.no (Jon Egil Stand) Date: Wed, 20 Jun 2007 13:42:23 +0200 Subject: Fill out skeleton specs Message-ID: <30ab559b0706200442k6075a87awa9fabab93614450f@mail.gmail.com> Geoff, you've committed specs for form helper methods. I've recently looked at some of those but unfortunately not spec'ed them. Would it be alright for you if I flesh out some of your specs related to forms? Ezra, would you prefer to have any edits as tickets, or checked in? All the best Jon Egil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070620/19598edd/attachment.html From john at smokinggun.com Sun Jun 24 16:30:41 2007 From: john at smokinggun.com (John Weir) Date: Sun, 24 Jun 2007 16:30:41 -0400 Subject: Lost MySQL Message-ID: <1B9509E6-DA6A-455D-8BA5-F48F5F02044B@smokinggun.com> geetings, after my MERB app was up for about 48 hours I started to get Mysql::Error: MySQL server has gone away mysql hadn't gone away, it is still running as the same process as when merb started. any advice on having ActiveRecord reconnect if this happens? thanks - jw From john at smokinggun.com Sun Jun 24 17:17:21 2007 From: john at smokinggun.com (John Weir) Date: Sun, 24 Jun 2007 17:17:21 -0400 Subject: merb and monit Message-ID: greetings, anyone know why the below will not start merb via monit? start program = "/usr/bin/merb -u nobody -G nogroup -e production -d - m /var/www/manwith/" it works fine from the command line, but not from monit. path problem, or env problem maybe? thanks jw From rogelio.samour at gmail.com Sun Jun 24 21:47:16 2007 From: rogelio.samour at gmail.com (Rogelio J. Samour) Date: Sun, 24 Jun 2007 20:47:16 -0500 Subject: Lost MySQL In-Reply-To: <1B9509E6-DA6A-455D-8BA5-F48F5F02044B@smokinggun.com> References: <1B9509E6-DA6A-455D-8BA5-F48F5F02044B@smokinggun.com> Message-ID: What version of merb are you running? This question also applies to your monit question. thanks, -ro On 6/24/07, John Weir wrote: > > geetings, > > after my MERB app was up for about 48 hours I started to get > > Mysql::Error: MySQL server has gone away > > mysql hadn't gone away, it is still running as the same process as > when merb started. any advice on having ActiveRecord reconnect if > this happens? > > thanks > > - jw > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070624/ffbc1699/attachment.html