I did find it in apache2 log catalog:
[ pid=13961 thr=140131648632576
file=ext/common/agents/HelperAgent/RequestHandler.h:1731 time=2013-01-12
19:40:34.6916 ]: [Client 23] Cannot checkout session. An error occured
while starting up the preloader.
Error page:
undefined method `default_locale=' for
#<Spree::AppConfiguration:0x0000000536bf50> (NoMethodError)

/home/ssa/spree-1.3.1-0/ruby/lib/ruby/gems/1.9.1/gems/spree_core-1.3.1/app/models/spree/preferences/configuration.rb:66:in
`method_missing'

/home/ssa/spree-1.3.1-0/apps/spree/htdocs/config/initializers/spree.rb:15:in
`block in <top (required)>'

/home/ssa/spree-1.3.1-0/ruby/lib/ruby/gems/1.9.1/gems/spree_core-1.3.1/lib/spree/core.rb:71:in
`config'

/home/ssa/spree-1.3.1-0/apps/spree/htdocs/config/initializers/spree.rb:8:in
`<top (required)>'

So how can I set default locale to ru?

суббота, 12 января 2013 г., 18:52:06 UTC+4 пользователь Serega Sheypak
написал:
Hi! I've installed bitnami stack Spree on Linux mint. I have several
questions:
1. i18n. I did find localization file ru.yml in github repo,
1.1. I did put it to config/locales near existing en.yml
1.2. What's next? What should I do to make spree use this ru.yml file?
1.3. I've tried to install gem and get an error:

sudo gem install spree_i18n
Fetching: acts_as_list-0.1.4.gem (100%)
Fetching: activesupport-3.2.11.gem (100%)
Fetching: activemodel-3.2.11.gem (100%)
Fetching: activerecord-3.2.11.gem (100%)
Fetching: awesome_nested_set-2.1.5.gem (100%)
Fetching: json-1.7.6.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing spree_i18n:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot
load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.7.6 for
inspection.
Results logged to
/var/lib/gems/1.9.1/gems/json-1.7.6/ext/json/ext/generator/gem_make.out


2. Source code.
2.1. I did open folder apps/spree/htdocs and see no controller code or
stuff like that. Where is all the code?

--

Search Discussions

  • Serega Sheypak at Jan 12, 2013 at 3:57 pm
    https://groups.google.com/forum/?fromgroups=#!topic/spree-user/M-qhURtzkWs
    AND:
    http://guides.spreecommerce.com/preferences.html

    Spree.config do |config|
    config.site_name = 'My Awesome Spree Site'
    config.default_locale = 'es'
    end

    Seems like documentation is out of date?

    суббота, 12 января 2013 г., 18:52:06 UTC+4 пользователь Serega Sheypak
    написал:
    Hi! I've installed bitnami stack Spree on Linux mint. I have several
    questions:
    1. i18n. I did find localization file ru.yml in github repo,
    1.1. I did put it to config/locales near existing en.yml
    1.2. What's next? What should I do to make spree use this ru.yml file?
    1.3. I've tried to install gem and get an error:

    sudo gem install spree_i18n
    Fetching: acts_as_list-0.1.4.gem (100%)
    Fetching: activesupport-3.2.11.gem (100%)
    Fetching: activemodel-3.2.11.gem (100%)
    Fetching: activerecord-3.2.11.gem (100%)
    Fetching: awesome_nested_set-2.1.5.gem (100%)
    Fetching: json-1.7.6.gem (100%)
    Building native extensions. This could take a while...
    ERROR: Error installing spree_i18n:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot
    load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'


    Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.7.6 for
    inspection.
    Results logged to
    /var/lib/gems/1.9.1/gems/json-1.7.6/ext/json/ext/generator/gem_make.out


    2. Source code.
    2.1. I did open folder apps/spree/htdocs and see no controller code or
    stuff like that. Where is all the code?

    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJan 12, '13 at 3:45p
activeJan 12, '13 at 3:57p
posts2
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Serega Sheypak: 2 posts

People

Translate

site design / logo © 2022 Grokbase