No Problem By the way, the Sinatra Book[1] is a good resource, if you haven't come across it yet, not 100% finished tho
[1] http://www.sinatrarb.com/book.html On Wed, Nov 18, 2009 at 1:45 PM, doug livesey <[email protected]> wrote: > Cheers for that, Adam -- prompted by your gist, I've had a little success > with Sinatra::Application.environment() and > Sinatra::Application.environment=(), so I'll crack on with that. > Cheers again! > Doug. > > 2009/11/18 Adam Holt <[email protected]> > > Hi Doug >> >> I have just started working with Sinatra over the last week and have come >> across some of the same issues. I've written up a quick gist for you, though >> i haven't tested any of it :) >> >> http://gist.github.com/237833 >> >> Cheers >> Adam >> >> On Wed, Nov 18, 2009 at 11:18 AM, doug livesey <[email protected]> wrote: >> >>> It does have the configure blocks, where you can set app attributes >>> depending on the environment, like so: >>> >>> configure :development do >>> @db_url = "postgres://usr:p...@localhost" >>> end >>> >>> So there must be a mechanism. I'll keep searching! >>> Cheers, >>> Doug. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "NWRUG" group. >>> To post to this group, send email to [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/nwrug-members?hl=. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "NWRUG" group. >> To post to this group, send email to [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/nwrug-members?hl=. >> > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=. > -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=.
