Spree 1.1.0 demo missing product images - ruby-on-rails

I'm on mac osx, rails 3.2.3, ruby 1.9.3-p194, spree 1.1.0, rvm 1.10.2. ImageMagick was installed using homebrew and is on version 6.7.5-7
First I installed spree gem install spree
Then created new rails project rails new mystore
To install spree to my rails app I did cd mystore and then spree install
The site runs fine but I don't see any images when I run the demo site. I also see that the public/spree/products folder is empty.
Any idea why the images were never created during installation?

Turns out that imagemagick wasn't installed properly on my system. You can check this by running identify at the command line. If it errors then imagemagick isn't installed right.
Once I got imagemagick installed properly I re-created the demo project and the images showed up.
It was hard to tell that anything wrong because the spree installation didn't throw any errors. So for anyone that runs into this problem, just check to make sure imagemagick is working.

Related

Rubymine can't find Rails on osx

I've upgraded ruby with homebrew. Current version is 2.2.2. Installed Rails by gem. Version is 4.2.4.
Trying to build an empty rails project RubyMine stops soon saying
Can't run 'rails'. Can't find 'rails'.
I've tried both with RubyMine 7.1 and RubyMine Eap 8.
In the shell, obviously everything works perfectly. I think this happens because RubyMine uses ruby in /usr/local/Cellar/ruby/bin instead of /user/local/bin. I've tried to export "cellar" folder in $PATH, but that doesn't work. Any Ideas?
I think this happens because RubyMine uses ruby in /usr/local/Cellar/ruby/bin instead of /usr/local/bin
That sounds right. Each Ruby install has its own set of (global) gems. Make sure you have rails installed using the Ruby installed by Homebrew (not just the system Ruby).

How can I uninstall ruby on rails completely on Windows (installed using RailsInstaller)?

I'm a complete beginner to ruby on rails and am just following a tutorial on Skillshare. I installed rails on Windows 7 following the instruction, but have been having issues.
I'd like to uninstall it completely and start fresh.
I saw some posts related to this, but commands like gem uninstall rails don't work because I'm not sure which folder I should be in when I type in that command.
Also, the tutorial is being done in Mac so I'm having trouble following it exactly.
Please let me know if there's a way to uninstall rails (installed using railsinstaller). Thanks a bunch!
You can uninstall it from Program and Features in Control Panel. After that you can remove the directory to which you installed it. If you didn't change it, then it is C:\Program Files(x86)\Railsinstaller
However, refreshing the software installation is just about the extreme step. What issues are you experiencing? You can comment or add those to your questions.

Mac OSx Lion - Cannot get RoR installed

I recently upgraded to Lion and I am trying to install Rails. I used RubyGems to install rails and each time I tried to start a new rails project I would get an error saying, "Method 'list ' was not found".
So I unistalled Rails using RubyGems. I noticed I had two versions installed. I uninstalled both. I then ran 'gem clean'. Once again I installed Rails but now when I attempt to create a new rails application it's as if rails is not installed.
rails: command not found
I have the new Xcode command line tools installed. Can anyone help a brother out?
I believe my issue is due to the fact RubyGem does not add 'rails' to the $PATH environment variable. I was able to get everything working by installing RVM and using it to update my default Ruby and install Rails

Rails not found after Mac Update

I just ran an Update on my Snow Leopard and today when I tried to run Rails server I got the following:
Rails is not currently installed on this system. To get the latest
version, simply type:
$ sudo gem install rails
On Echo $PATH I get following:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
Update
Running the command giving above for installing rails did not do any harm. I guess updating process removed previous links of rails. the latest version of Rails and dependencies got installed and things working perfect
Try this command
which rails
and see if rails is installed. If it is, add it to your executable path

I've broken my rails installation

Got a new machine and ported settings and files over. Went to update to Rails 3.2 and now I'm getting a list of installed gems when I run "gem list" but when I run the rails command, it tells me: Rails isn't installed.
I'm running OS X Lion and Rails 3.2. I've tried editing the path and creating a symlink and nothing seems to work. I'd be grateful for any help!
Try this tutorial and install Ruby Version Manager. It's got all the steps I followed to get ruby working on my mac.
http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/

Resources