On Mar 12, 2009, at 12:06 AM, _why wrote:
Sure you could use a class var. Those are guaranteed to persist
throughout the life of the app. Or a constant.
Also, Shoes comes with SQLite3, data can be passed there.
Thank you!
On Wed, Mar 11, 2009 at 11:52:21PM -0400, Edward Heil wrote:
> OK, so fooling around further it looks like all instance variables get
> wiped at the beginning of every method within a Shoes subclass.
> That's OK I guess. So what's the preferred way to have some data
> that's shared from one
OK, so fooling around further it looks like all instance variables get
wiped at the beginning of every method within a Shoes subclass.
That's OK I guess. So what's the preferred way to have some data
that's shared from one Shoes URL to another? Passing it from one page
to the next in the
this seems weird to me. Am I wrong to be able to expect to use a
method inside a shoes-derived class to assign a value to an instance
variable?
Check this out:
==
class BugTest < Shoes
url '/', :main
def assign_variable
info "assigning variable."
@foo = "bar"
info "se