undefined method `host' for System:Class+discussion

Interesting.  The System object is gone completely from 1.8, so I don't think this could show up there.

 

When were you seeing this issue?  When starting the server?


My mistake, in 1.8 the error is as following:

 

undefined method `host' for System:Class

 

upon performing: rake db:migrate

 

I have a config/wagn.rb that exists since 1.4 or earlier, and contains a System.base_url = and System.max_renders = 16

Are these deprecated? In any case, commenting these out does not fix the issue.

  --Patrick Roza.....Wed Jan 25 13:21:02 -0800 2012


Actually when running with --trace, the indication is line 10 of config/wagn.rb which contains:

 

CachedCard.set_cache_prefix "#{System.host}/#{RAILS_ENV}"

 

Commenting this out makes the error go away.

  --Patrick Roza.....Wed Jan 25 13:22:39 -0800 2012


Hmm, wagn.rb itself is deprecated in 1.8, so it shouldn't be having any effect. Let me see if I can figure out why it's getting loaded at all.

  --Ethan McCutchen.....Wed Jan 25 13:25:53 -0800 2012


all the configuration is now in wagn.yml. see item #4 here: Wagn 1.8+upgrade notes.

 

Make sure you check out that doc -- it's a sizable upgrade :)

  --Ethan McCutchen.....Wed Jan 25 13:27:03 -0800 2012


Okay I am afraid there's been a horrible mixup on my end, apologies.

 

I was on Master branch, on commits after the 1.8.pre tag date, assuming I was running 1.8, however that is wagn 1.7.1 ..

Wagn 1.8 seems to be on the develop branch instead :)

 

Adjusting the ticket accordingly.

 

When I'll make the jump, I'll be sure to go through the upgrade docs, thanks!

  --Patrick Roza.....Wed Jan 25 13:34:55 -0800 2012


right, we haven't formally released 1.8 yet, just 1.8.pre in the develop branch. that will change soon!

  --Ethan McCutchen.....Wed Jan 25 13:40:41 -0800 2012


Great, the jump to Bundler and Rails 3.1 are certainly welcome, but im sure there's a lot more to it :-) MemCache support is great too.

I've just upgraded one of my wagns to the latest 1.8 on develop, apart from some minor issues that I'll probably be reporting soon, everything's shiny.

  --Patrick Roza.....Wed Jan 25 13:52:22 -0800 2012


I think the above issues are all addressed, right? I'm going to close this, but feel free to reopen (or start a new ticket) if there are still problems.

  --Ethan McCutchen.....Fri Mar 23 19:45:04 +0000 2012