I'm following the spree 'getting started' guide from here: http://spreecommerce.com/documentation/getting_started.html
I'm stuck at:
rails g spree:site
I'm using Rails 2.3.11 and not Rails 3. So I tried:
dan#bt:~/mystore$ script/generate spree:site
Couldn't find 'spree:site' generator
I couldn't find the guide for a Rails 2.3.x install..
Spree gem 0.11-stable works against Rails 2.3.8. If you want to fix it to work against 2.3.11 you'll have to go through the code-base and manually update references for Rails 2.3.8 to 2.3.11.
Legacy documentation to Spree 0.11 is here:
http://guides.spreecommerce.com/legacy/0-11-x/index.html
There is a thread on the Spree Google Groups that discusses this:
http://groups.google.com/group/spree-user/browse_thread/thread/d0a22b82b2fb43ee
I highly recommend upgraded to the latest version of Spree (currently 1.0.0) as Spree-Conference was just announcing it. It has a rich feature-set, great bug fixing, and works against Rails 3.1.1.
Related
Did Rails Dev, migration rails app using ar-octopus to rails version 6/7.
As I see there are no updates regarding the rails v6 in ar-actopus gem, did any tried to upgrade on own.
Thanks in Advance.
First of all, I think it isn't a prohibited question on StackOverflow since it's a precise question about environment, an objective question. But if it's prohibited, please tell me.
Currently I'm developing a specific project that is using Ruby 1.9.3 and Rails 3.2.3, at the moment we can't upgrade to Rails 4 because the project dependencies.
My question is:
Using Rails 3.2.3, we can upgrade to a newest Ruby version? If so, what version: Ruby 2.0, Ruby 2.1.2 or another one?
Also, I searched on Google and StackOverflow and I don't find a question like that.
Thanks!
The first release of rails that officially support ruby 2.0 was 3.2.13 (see the announcement on the rails blog.
I deployed several applications running 3.2.15-3.2.17 and ruby 2.0 (They've since been upgraded to rails 4) without any problems that I recall.
The recently released 3.2.22 supports ruby 2.2 (announcement)
According to the Travis configuration, Rails 3.2.3 was only tested with Ruby 1.8.7, 1.9.2 and 1.9.3, so it doesn't seem to be a good idea to use a later version of Ruby (but you can always test it yourself.) However, Rails 3.2.3 has some known security vulnerabilities that have been patched in 3.2.19.
On the other hand, the configuration for Rails 3.2.19 does suggest that the developers expect it to work with Ruby 2.0.0. Your project might benefit from investing some effort to see if you can upgrade from Rails 3.2.3 to 3.2.19, and test a combination of that with Ruby 2.0 for your application, if there are new Ruby features that you need and cannot efficiently backport them. Bear in mind that the only recent answer to a similar question warns of 'weird issues' from such a combination. Also consider that the latest Rails 3.2 release notes do not mention Ruby 2.0.
I want to run two rails apps which have rails version 3.1.10, 4.0.2 & ruby 1.9.2, 2.1.0. Is it possible to do this using Heroku?
As long as you specify the ruby and rails version in your Gemfiles, heroku will take care of it for you. I have an app running on ruby 1.9.2 and rails 3.2.13 and another on ruby 2.0.0 and rails 4.0.3.
Yes, It is possible just make sure that the ruby versions with rails 4. It requires Ruby version 2.0.0+.
Just check the
https://devcenter.heroku.com/articles/getting-started-with-rails4
https://devcenter.heroku.com/articles/getting-started-with-rails3
for the pre requisites.
Currently I am using rails 2.3.10, I want to update my rails version to version 3.
What's the command to update rails?
So, the basic command would be:
gem update rails
But, upgrading from 2.3.x to 3.x isn't a trivial task... you should really read up a little more on it before you do so.
Ryan Bates shows you how to do it here. The Rails version you are using are completely different so you will have to upgrade Rails and then use this plugin to help upgrade your application unless you already know everything.
I've got a Rails 2.3.5 app that I want to upgrade to Rails 3. In the Rails 3 upgrade Railscast, they suggest upgrading to 2.3.8 before going to 3. I've tried Googling but the information I find is all about upgrading to Rails 3. I found this question, which seems to suggest doing gem update rails and rake rails:update, but wouldn't these commands upgrade to Rails 3, as it's the latest version? How do I upgrade to Rails 2.3.8? Thanks for reading.
There's not much difference between 2.3.5 and 2.3.8 (also, 2.3.10 is the latest version on the 2.3 branch - you should upgrade to that).
Install Rails 2.3.10:
gem install rails -v=2.3.10
Then edit config/environment.rb and change your Rails version to 2.3.10 near the top of the file. Start up webrick, deal with any deprecation warnings it throws at you while you click through your app, and you're pretty much done.
Citation from the Rails blog:
"We’ve released Ruby on Rails 2.3.9
(gem and git tag) to extend the 2.3.8
bridge a few steps closer to Rails 3
and Ruby 1.9. If your app runs on
Rails 2.3.9 without deprecation
warnings, you’re looking good for an
upgrade to Rails 3."
Edit:
Jeremy is on the money. Don't install 2.3.9, it has a serious security flaw. I've updated my answer to 2.3.10.
You can run rake rails:update - this updates the stock javascripts and config files. However, they probably won't need to be changed from 2.3.5 to 2.3.10.
$ gem install rails -v 2.3.8
Then change the RAILS_VERSION in your environment.rb file and run
$ rake rails:update