FAQ
Yep, that would fix it.

Thanks.

*Weston Platter | **westonplatter@gmail.com | google voice** - 408.657.8090*

On Wed, Jul 3, 2013 at 8:18 PM, Ryan Bigg wrote:

I believe if you inherited from Spree::StoreController rather than
Spree::BaseController, you wouldn't have to do that.

On Thu, Jul 4, 2013 at 1:01 AM, Weston Platter wrote:

I had to manually bring in the undefined helper methods,

module Spree
class Spree::WizardsController < Spree::BaseController


# helper methods that are located in the spree layout view code
#
helper Spree::StoreHelper

helper Spree::BaseHelper
include Spree::Core::ControllerHelpers::Order

end



*Weston Platter | **westonplatter@gmail.com | google voice** -
408.657.8090*

On Tue, Jul 2, 2013 at 9:51 PM, カーター ダニエル wrote:

I'm a Rails newbie so I'm afraid this is a complete stab in the dark,
but I'm wondering if modifying the controller to inherit from
Spree::StoreController (instead of ApplicationController) would make any
difference?
On 3/07/2013 3:15 AM, Weston Platter wrote:

I'm building a Spree extension, and
followed http://guides.spreecommerce.**com/developer/extensions_**
tutorial.html<http://guides.spreecommerce.com/developer/extensions_tutorial.html>
.
I added a Wizards scaffold (model + controllers + views). When I try and
view it at, http://example.com/wizards, it says the helper methods
cannot
be found.

undefined method `store_menu?' for #<#<Class:0x007ffd8f89de08>:**
0x007ffd8f8a7a48>


*Is there something I have to do to load the helpers?*

*Gemfile*
gem 'spree', github: 'spree/spree', branch: '2-0-stable'

*spree_wizard_products_**selection.gemspec*
s.add_dependency 'spree_core', '~> 2.0.0'


--

Ryan Bigg
Community Manager
Spree Commerce, Inc.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJul 2, '13 at 6:15p
activeJul 4, '13 at 2:19a
posts4
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Weston Platter: 3 posts Ryan Bigg: 1 post

People

Translate

site design / logo © 2022 Grokbase