FAQ
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

  • Googlegroups at May 29, 2013 at 1:30 pm
    right after:

    Now we need to extend Spree::HomeController and add an action that selects
    “on sale” products.


    it says:

    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:


    So you need to be in the root of the extension that you created. then make
    the dir:

    mkdir -p app/controllers/spree



    And continue on. It is pretty unclear when you are supposed to be in the
    mystore vs the extension dir after that point (I just went through them
    over he weekend).
    Keep an eye out for the keywords like "fix the extension" or "decorator".
      Those mean you are in the extension dir. I don't recall going back to
    "mystore" until we are trying to integrate it.
    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
  • Googlegroups at May 29, 2013 at 1:30 pm
    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
  • Magnus_vb at May 29, 2013 at 1:52 pm
    Thanks!
    I got stuck on the console thing. It did not worked in the extension root -
    but in the store root. Therefor I was confused about which director to be
    in.

    Many thanks for the keywords tips :=) Now I can move on.

    Regards,
    Magnus

    On Wednesday, May 29, 2013 3:20:43 PM UTC+2, google...@jamieandamy.com
    wrote:
    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

Related Discussions

Discussion Navigation
viewthread | post
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