FAQ
I might have been confused about which part you were stuck on- for the
console part I think that you need to be in the "mystore" directory, sorry.
  The updates happen in the extension.
On Wednesday, May 29, 2013 8:35:17 AM UTC-4, magnus_vb wrote:

Hi
I'm following the tutorial (at spreecommerce) on how to do a extension and
deface. But I'm not sure I'm doing it the right way.

- I have generated the extension with the file structure.
- I have added the extension to my Spree application (v2.0)

But at the next moment, I'm not sure what to do. The tutorial says this:

*"Now we need to extend Spree::HomeController and add an action that
selects “on sale” products.*
*Make sure you are in the spree_simple_sales root directory and run the
following command to create the directory structure for our controller
decorator:"*

Does that mean that I should go back the extensions root folder (not the
Spree installation)? I tried that and followed the tutorial. But when I try
the command "rails console" I get an error:

Error: Command not recognized
Usage: rails COMMAND [ARGS]


That is where I'm stuck :(

Have I done it right so far? Any help are welcome.

Regards,
Magnus

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedMay 29, '13 at 12:35p
activeMay 29, '13 at 1:52p
posts4
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Magnus_vb: 2 posts Googlegroups: 2 posts

People

Translate

site design / logo © 2022 Grokbase