How do I complete installing extension spree_related_products?

59 views
Skip to first unread message

lasse

unread,
Dec 9, 2010, 10:32:48 AM12/9/10
to Spree
Hi,

I'm pretty new to rails and spree...

Just installed the spree_related_products in the following tutorial
http://spreecommerce.com/documentation/extensions.html.

However, when I update the web browser, it seems like the migration
didn't go too well. How can I fix this problem?

BTW, is it normal that the spree core ends up in the "var"? I would
expect it to be in the project directory..

Mysql2::Error in Products#index

Showing /var/lib/gems/1.8/gems/spree_core-0.30.1/app/views/shared/
_products.html.erb where line #15 raised:

Table 'spreestore_dev.relation_types' doesn't exist

Best regards,
lasse

lasse

unread,
Dec 10, 2010, 7:20:57 AM12/10/10
to Spree
Hi again,

looking at related_products_extension_tasks.rake, i concluded that
"rake spree:extensions:related_products:update" should do the job.

$ rake spree:extensions:related_products:update
rake aborted!
uninitialized constant RelationsExtension

I replaced this constant with a hard coded path and tried again.
Nothing happened.
Looking more closely, I saw that it's supposed to copy the content
from "/public/**/*" to the spree app. But "/public/**/*" doesn't
exist.

I'm stuck again.. If any one has a solution to this problem, please
contact me.

Thanks,
lasse

On Dec 9, 4:32 pm, lasse <georg.tornqv...@gmail.com> wrote:
> Hi,
>
> I'm pretty new to rails and spree...
>
> Just installed the spree_related_products in the following tutorialhttp://spreecommerce.com/documentation/extensions.html.

lasse

unread,
Dec 14, 2010, 3:23:46 AM12/14/10
to Spree
I'm really looking forward to getting this up and running. Please
help.

Brian Quinn

unread,
Dec 14, 2010, 4:22:19 AM12/14/10
to spree...@googlegroups.com
Did you try:

 rails g spree_related_products:install
    

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.




--
Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

Brian Quinn

unread,
Dec 14, 2010, 5:01:04 AM12/14/10
to spree...@googlegroups.com
Also, make sure you're using this version:


I just pushed a couple of quick cleanup fixes for Rails 3 / Spree 0.30.x

Georg Törnqvist

unread,
Dec 14, 2010, 10:07:51 AM12/14/10
to spree...@googlegroups.com
It worked! Thanks!

These are complete instructions to install the extension spree-related-products. The tutorial on http://spreecommerce.com/documentation/extensions.html didn't work for me.

1. Add to gem file: gem 'spree_related_products', :git =>  'https://github.com/spree/spree-related-products.git'
2. Run rails g spree_related_products:install
3. Run rake db:migrate.

Many thanks,
lasse

2010/12/14 Brian Quinn <br...@railsdog.com>

Chris Loeper

unread,
Jan 26, 2011, 8:17:52 PM1/26/11
to Spree
I've encountered the same issue as the OP. I've combed the web for
clues on how to resolve this issue.

For me it comes down to the fact that the generator for
spree_related_products does not exist. I've added the appropriate
entries in my gem file like so:

gem 'spree', :git => 'http://github.com/railsdog/spree.git'
gem 'spree_related_products', :git => 'http://github.com/spree/
spree_related_products.git'

I've tried using bundle install and gem install, both of which appear
to do their jobs correctly. If the generator is not installed,
however, I'm not convinced the install is happening correctly.

I'm on a windows 7 box (shoot me) and have had no issues like this
come up until now, but I don't want to rule out the OS as a potential
point of failure.


Any help is greatly appreciated!

Thanks in advance,
Chris

On Dec 14 2010, 7:07 am, Georg Törnqvist <georg.tornqv...@gmail.com>
wrote:
> It worked! Thanks!
>
> These are complete instructions to install the extension
> spree-related-products. The tutorial on http://
> spreecommerce.com/documentation/extensions.html didn't work for me.
>
> 1. Add to gem file: gem 'spree_related_products', :git =>  'https://github.com/spree/spree-related-products.git'
> 2. Run rails g spree_related_products:install
> 3. Run rake db:migrate.
>
> Many thanks,
> lasse
>
> 2010/12/14 Brian Quinn <br...@railsdog.com>
>
>
>
>
>
>
>
> > Also, make sure you're using this version:
>
> >https://github.com/spree/spree-related-products
>
> > I just pushed a couple of quick cleanup fixes for Rails 3 / Spree 0.30.x
>
> > On 14 December 2010 09:22, Brian Quinn <br...@railsdog.com> wrote:
>
> >> Did you try:
>
> >>  rails g spree_related_products:install
>
> >>> spree-user+...@googlegroups.com<spree-user%2Bunsubscribe@googlegrou ps.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/spree-user?hl=en.
>
> >> --
> >> Brian Quinn
>
> >> -------------------------------------------
> >> Rails Dog LLC
> >> 2 Wisconsin Circle, Suite 700
> >> Chevy Chase, MD 20815
> >> voice: (301)560-2000
> >> -------------------------------------------
>
> > --
> > Brian Quinn
>
> > -------------------------------------------
> > Rails Dog LLC
> > 2 Wisconsin Circle, Suite 700
> > Chevy Chase, MD 20815
> > voice: (301)560-2000
> > -------------------------------------------
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Spree" group.
> > To post to this group, send email to spree...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > spree-user+...@googlegroups.com<spree-user%2Bunsubscribe@googlegrou ps.com>
> > .

Roman Smirnov

unread,
Jan 28, 2011, 6:15:10 AM1/28/11
to Spree
For now you should run 'rake spree_related_products:install' instead
of generator.

Chris Loeper

unread,
Jan 28, 2011, 3:00:23 PM1/28/11
to Spree
That did the trick.

Many thanks!
Reply all
Reply to author
Forward
0 new messages