Julian Leviston wrote:
> It responds to fetch just fine for me. Can you send the code and error?
>
Hey, me too!
class StoreController < ApplicationController
def index
session[:test] = 10
puts "***************"
print "[]: ", session[:test]
puts
print "fetch: ", session.fetch(:test, "Couldn't find.")
puts
print "fetch: ", session.fetch(:bird, "Couldn't find bird.")
puts
puts "****************"
end
end
--output in server window:--
***************
[]: 10
fetch: 10
fetch: Couldn't find bird.
****************
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---