RailsCasts Pro episodes are now free!
Learn more or hide this
But did you have some problems with rails 3.1 ? the system seems to be very slow in development mode.
It is a bit slow in development mode, see the performance section in the readme here for how to improve it. Also you may want to try Active Reload.
Thank you Ryan,
In fact, with Active Reload the server is really fast in production mode.
If you try out the master branch of spree right now, you could see a vast spped boost in development because Spree now requires Rails 3.2 app.
As per their online documentation - Rails 3.2 is not yet supported with version 1.0 - but should be with the next minor release.
Even after installing Rails 3.1.4 I couldn't get the stable version to work. I love everything about rails - except issues that I seem to have regarding versions and dependencies. :( I use rvm - and that seems to be a nightmare when it doesn't work.
There is a bug report with rails 3.1 spree 0.70.1, nokogiri 1.5.0 and ruby-1.9.3-p0 https://github.com/tenderlove/nokogiri/issues/561
And I have this bug ;-)
But for the slowness, you can use RailsDevTweaks
I hope to see the in depth how to create an theme for Spree. I guess it would result both, useful for the a particular developing task, but it could really help the spree community to boost on creating various themes for the engine.
However, it was excellent as always.
From what I can tell, creating a theme in Spree is very similar to customizing the application like I showed here. The only difference is that you're working on an engine instead of the application. Check out the blue theme and the Rails Dog Radio theme for good examples.
@Stephane - There's some tips on the spree blog for rails 3.1 performance:
@Ryan: yet again you've done a great tutorial job. Thanks for covering this episode with Spree. In version 0.80, we plan to have the namespace for the sake integration with other such as RefineryCMS. I hope you will create another tutorial on Spree integration.
I used this script to install Image Magick on previous applications, seemed to work good: https://github.com/maddox/magick-installer
How about seeing to integrating into existing app. Thanks for screencast! Great job!
Any ideas as to why I receive the following error message when I run rake db:bootstrap --trace per the instructions in the readme for this episode?
This task will destroy any data in the database. Are you sure you want to
continue? [y/n] y
undefined method set_preference' for nil:NilClass
/home/family/.rvm/gems/ruby-1.9.2-p290/gems/spree_core-0.70.1/lib/spree/preference_access.rb:18:in block in set'
set_preference' for nil:NilClass
block in set'
I'm receiving the same error.
I fixed it. Follow these steps:
bundle exec rake db:migrate
bundle exec rake db:bootstrap
thanks for the railcast! as a noob, this is just what i have been looking for.
question.... the basic spree store that i got up and running seems to be missing a number of elements like the links for the shopping cart, search bar, etc.. and when you click on a product it goes to a blank page. this is different than what you illustrate here. i read that the basic spree install is basic... it just seems that the one i have set up is much more basic than the one illustrated. i would appreciate any advice or direction as to what i might be missing. i am using, spree 0.70.1, ruby-1.9.2-p290 and rails 3.1.1.
THANKS FOR THE TUTORIAL.
I am getting errors below on ruby192 and rails 3.1.0 when I run rails g spree:site
my gemfile contains gem "spree" instead of latest version because of dependency problem.
Also command does not modify assets css like in this tutorial and does not copy a lot of migration files.
ANY IDEAS ABOUT THOSE ISSUES THANKS!
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /Users/ghaydarov/Desktop/spree/config/application.rb:7)
[DEPRECATION WARNING] Nested I18n namespace lookup under "activerecord.attributes.checkout" is no longer supported
We are using Spree 1.0.1 for development but getting a lot of issues with lot of extensions.
Even the official plugins Spree Social and Spree Active Shipping has issues, does any one know any alternatives to these above extensions?
thanks ryan but i can see the admin mode
Its long time, Please post a PRO screencast on spree coustmoization
cover both frontend and admin .
+1 to Pro Screencast
Thanks for the post Ryan, you don't have any idea how much you helped me so far. :)
By the way, rails g spree:site is not the generator right now. It is rails g spree:install anymore.
rails g spree:site
rails g spree:install
This does not work in my system: Ubuntu 10.04, Rails 3.2.11
But this worked:
rails new store
spree install store -A
Next the address http://localhost:3000
will give u the spree web page.
login with email@example.com
password : spree123
u will get the admin screen.
Refer the website:
Spree:site no longer works but this does
I would love an extension of this cast. Pro maybe.
Short gist on installing Spree in a new Rails app: https://gist.github.com/kany/6334724
+1 for an extension to this cast... perhaps writing a Spree Extension :)
+1 for more on Spree. I am having trouble customizing the app. Specifically I am using spree_fancy gem but can not customize the color scheme :(
I dont known spree, but it seems cool
First sign in through GitHub to post a comment.