Rail project creation error on ubuntu 12.04

this is the ruby version I used.
ruby -version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
-e:1:in <main>': undefined local variable or methodrsion’ for
main:Object (NameError)

The problem is that when I create rails project I get errors on
/config/initializers/session_store.rb
I get error at: Ss::Application.config.session_store :cookie_store, key:
‘_ss_session’

/config/initializers/wrap_parameters.rb
I get errors on : wrap_parameters format: [:json]
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json]
end

How did u install it, using rvm? I have written a blog which you can
follow
to install ruby and rails

.
But for this error, sorry, I don’t have specific answer.