FWIW, I created a Rails4 / Spree 2.1.x app last night. It's working fine.

I had a similar issue too when I upgraded a different Spree 2-0-stable //
Rails 3.2.14 app to Spree 2.1.x. The multi_json gem was having issues
parsing the Cache Control setting, IE,
I fixed the issu by starting with a brand new Rails 4 app. This was not an
issue since all the store's functionality was done via extensions.

On Tuesday, October 22, 2013 9:49:55 AM UTC-6, Zyren wrote:


I just created a new rails app. It did the same thing. Here is what i am

ruby 2.0.0p247
rails 4.0.0
spree 2.1-stable
mysql2 0.3.13

What i did to reproduce the error:

rails new spree4
cd spree4
spree install --auto-accept
changed database type to mysql2 in the gemfile (and updated database.yml)
bundle install
replace spree.rb with the one i have attached in this post
rails server

Then, if you look in the database, after the rails server is running and
the initializers have been run, the database values for those preferences
are messed up.

On Monday, October 21, 2013 12:58:18 PM UTC-7, Ryan Bigg wrote:

Are you able to reproduce this issue within a new rails app?

On Tue, Oct 22, 2013 at 2:14 AM, Zyren wrote:

I am having am issue extremely similar to this. However, Doug's solution
did not fix my problem. Here's an example of what I'm seeing:

in spree.rb i have

Spree.config do |config|
config.track_inventory_levels = false
config.use_s3 = false
config.currency = "USD"

However, when i run the server in development, the values in the
database are stored as "--- USD...", "--- false...", etc. Lets say i were
coming to the website for the first time and I'm creating a new order and
the currency is saved, it gets saved as some unicode that looks like
"I"USD:EF". Right now i can manually remove all the extraneous characters
and develop properly, but every time i run the server i have to do this.
On Sunday, October 20, 2013 10:41:23 AM UTC-7, Doug Bradbury wrote:

I'm upgrading from 1.3.3 to 2.1.2. After I run all the migrations, my
preferences table is all out of whack.

An Example:

What are these extras characters and how did this happen? Looking
through all the migrations, I don't see anything that could have done this.

It could be happening in the app initialization somewhere too I suppose.

Any guidance would be appreciated!
Doug Bradbury

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 11 | next ›
Discussion Overview
groupspree-user @
postedOct 20, '13 at 5:41p
activeOct 22, '13 at 9:45p



site design / logo © 2022 Grokbase