That sounds like a good idea. I've figured out one way to do cookies, but still need to find a way to handle sessions. Pushing later when I've come up with something :-)
//Magnus Holm On Wed, May 6, 2009 at 22:28, Mikkel Refsgaard Bech <mik...@refsgaardbech.dk > wrote: > > On 05/05/2009, at 22.49, Magnus Holm wrote: > > Oh crap. Did that get commited? I was just testing if the memory-database > had anything to do with it and forgot to change it back later. Pushing a > "fix" tomorrow :-) > > > Sweet. > > One other thing, I can't figure out how to input some @state before I call > get/post/etc... I need to test my app while I'm logged in, which just means > that some user ID is set in @state, is that possible? > > E.g.: > > test "i can get my secret page when I am logged id" do > @state.user_id = 1 > get '/secretpage' > assert_response :ok > end > > Thanks, > Mikkel > > > > //Magnus Holm > > > On Tue, May 5, 2009 at 22:40, Mikkel Refsgaard Bech < > mik...@refsgaardbech.dk> wrote: > >> On 03/05/2009, at 21.34, Magnus Holm wrote: >> >> I've pushed out a fix now. Could you verify it? >>> >> >> Works fine, thank you. >> >> Any reason for not using the :memory: database any longer? >> >> >> Regards, >> Mikkel >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > _______________________________________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > > > _______________________________________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
_______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list