Hi guys.

I'm a freshman on Rails (and Ruby) so I'm sorry if my question is
pretty basic, and possible has a vary basic answer. I tried to Google
this problem, but a couple of hour after and no solution found, I
decided to ask for help here.

I have installed ruby 1.9.1p243, Rails 2.3.4, Gem 1.3.5, SQLite
version 3.6.18 (I think this is all that it's needed).
I´m reading and implementing simultaneously Depot sample app presented
in the book Agile Web Development with Rails. After creating the Model
(just a simple table Products) and generating the controller and views
through the generate script with scaffolding enabled, and applying the
respective migration to the database (SQLite), when I access the
default action on Products controller (index), I get the following
error:

------------------------------------------------------------------------------------------------------------------------
 Showing app/views/layouts/products.html.erb where line #12 raised:

undefined method `^' for "d":String

Extracted source (around line #12):

9: </head>
10: <body>
11:
12: <p style="color: green"><%= flash[:notice] %></p>
13:
14: <%= yield %>
15:

RAILS_ROOT: C:/lfalcao/Work/Dev/Ruby/Rails/Depot
Application Trace | Framework Trace | Full Trace

C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/
lib/active_support/message_verifier.rb:46:in `block in secure_compare'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/
lib/active_support/message_verifier.rb:45:in `each'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/
lib/active_support/message_verifier.rb:45:in `secure_compare'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/
lib/active_support/message_verifier.rb:28:in `verify'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/cookie_store.rb:156:in `unmarshal'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/cookie_store.rb:145:in `load_session'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/abstract_store.rb:62:in `block in load!'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/abstract_store.rb:70:in
`stale_session_check!'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/abstract_store.rb:61:in `load!'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/abstract_store.rb:28:in `[]'
C:/Ruby/Ruby1.9.1-p243/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/flash.rb:163:in `flash'
C:1:in `flash'
C:/lfalcao/Work/Dev/Ruby/Rails/Depot/app/views/layouts/
products.html.erb:12:in
`_run_erb_app47views47layouts47products46html46erb'
C:/lfalcao/Work/Dev/Ruby/Rails/Depot/app/controllers/
products_controller.rb:7:in `index'
------------------------------------------------------------------------------------------------------------------------

This is the default view generated. I haven't touched it yet. What is
this problem? Do I need to install something else? Am I doing anything
wrong?
I'm sorry if this is a basic one, but I tried everything (which is
very little) I know. Anybody can help me?

Thanks!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to