> it just keeps getting worse.
> After methodically editing-out each of the offending lines it seems to
> have worked up until today when:
> passenger reports: Ruby on Rails version '2.0.2' not found
> now when checked dreamhost Rails version now reports 2.2.2.
> curious why it didn't complain at Rails version 2.1.1
> I tried changing the environment.rb file:
> RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
> but have yet to track down the next subsequent error.
> how many rails version changes does it take to host a website. I know
> I should have used rails freeze:edge but it was working at that point.
> is this the experimental nature of Rails? maybe not fit for business
> applications.
> gerhard
> On Jan 8, 12:57 pm, "Adam Palmblad" <apalmb...@gmail.com> wrote:
> > There may be a cutoff for support, but IMO it's much better to have your app
> > not break. You can upgrade your vendored rails periodically - and then
> > check your tests and whatever else you do to ensure that things keep
> > running. It's much easier to debug a problem right after you've upgraded
> > yourself, instead of after you've deployed and you aren't sure what's
> > happening.
> > -Adam
> > On Wed, Jan 7, 2009 at 8:24 PM, schmii <schmi...@gmail.com> wrote:
> > > thanks Adam for the quick response. I'll try freezing my versions for
> > > future protection. But isn't their a limit on the age of rails
> > > supported?
> > > business.address is a string:
> > > by changing
> > > 28: <td><%= h(truncate(business.address, 15)) %></td>
> > > to
> > > 28: <td><%= h(business.address) %></td>
> > > works as expected
> > > so is the 'truncate' function deprecated?
> > > thanks
> > > schmii
> > > On Jan 7, 7:30 pm, "Adam Palmblad" <apalmb...@gmail.com> wrote:
> > > > I'd strongly recommend vendoring *at least* your version of rails so that
> > > > won't happen again, if that's the problem.
> > > > Run:
> > > > rake rails:freeze:edge RELEASE=2.1.1
> > > > in the root directory of your application.
> > > > That way, you control a copy of rails with your application, no need to
> > > > worry about what's installed on the server.
> > > > That being said, truncate shouldn't just break - are you sure
> > > > business.address is a string?
> > > > -Adam
> > > > On Wed, Jan 7, 2009 at 6:32 PM, schmii <schmi...@gmail.com> wrote:
> > > > > is anyone aware if something had changed in the past couple of days on
> > > > > dreamhost accounts running rails?
> > > > > it seems the server crashed every time it encountered 'truncate' in
> > > > > any of my views as in:
> > > > > ActionView::TemplateError (undefined method `length' for
> > > > > #<Enumerable::Enumerato
> > > > > r:0x2b4614ca23c8>) on line #28 of businesses/list.rhtml:
> > > > > 28: <td><%= h(truncate(business.address, 15)) %></td>
> > > > > when checked the present Rails version is 2.1.1
> > > > > I've manually gone through and edited out each offending lines and it
> > > > > seems
> > > > > to work.
> > > > > if this is just due to a rails upgrade thats got to suck
> > > > > schmii