From: Max Muermann Date: 2006-11-02T07:47:48+09:00 Subject: Re: still more relentless non-repetition > > I don't like all the upcasing and downcasing. it's not as elegant as > it could be. > > what I do like about it is that it generates a lot of HTML without > very much Ruby at all. that's pretty good bang for the buck. in one > short method and two quick partials, you have all the code necessary > to generate four different types of model-specific search pages, plus > links for searching different models with the same query. > > obviously the array of words could be an instance var, and could be > aribtrarily large, but only if I fixed the upcasing and downcasing. > > -- > Giles Bowkett > http://www.gilesgoatboy.org > Try: "Track".tableize => 'tracks' 'tracks'.classify => Track and "MyCategory".tableize => "my_categories" "my_categories".classify => "MyCategory" Cheers, Max