Hi all,

I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1 to 1.2. This version introduces new auth system and I'm having some trouble with it.

Since the extension handle users we need to access to /admin/users/ path but lot of extension tests fail because of this error:

Failure/Error: visit spree.admin_path
ActionView::Template::Error:
undefined method `admin_users_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>


In fact if I run "rake routes" in the dummy app I can't see admin users paths and in the spree_auth_devise routes file (https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb) there's no trace of these routes.

I'm including the "spree_auth_devise" through the gemspec in this way:

Gem::Specification.new do |s|

...
s.add_dependency 'spree_auth_devise', '~> 1.0.1'

end

and requiring it in the lib/spree-subscriptions.rb file.

Can someone please help me understand where this path is currently defined and how can I include it in my app without to interfere with spree core modules?

Thanks

--
Alberto Vena

http://nebulab.it/

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

Search Discussions

  • Ryan Bigg at Dec 11, 2012 at 10:59 pm
    Can you make this extension available to me so that I can poke and prod at
    it?

    On Tue, Dec 11, 2012 at 9:03 PM, Alberto Vena wrote:

    Hi all,

    I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1
    to 1.2. This version introduces new auth system and I'm having some trouble
    with it.

    Since the extension handle users we need to access to /admin/users/ path
    but lot of extension tests fail because of this error:

    Failure/Error: visit spree.admin_path
    ActionView::Template::Error:
    undefined method `admin_users_path' for
    #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>

    In fact if I run "rake routes" in the dummy app I can't see admin users
    paths and in the spree_auth_devise routes file (
    https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb)
    there's no trace of these routes.

    I'm including the "spree_auth_devise" through the gemspec in this way:

    Gem::Specification.new do |s|

    ...
    s.add_dependency 'spree_auth_devise', '~> 1.0.1'

    end

    and requiring it in the lib/spree-subscriptions.rb file.

    Can someone please help me understand where this path is currently defined
    and how can I include it in my app without to interfere with spree core
    modules?

    Thanks

    --
    Alberto Vena

    http://nebulab.it/

    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To post to this group, send email to [email protected].
    To unsubscribe from this group, send email to
    [email protected].
    For more options, visit this group at
    http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected].
    To unsubscribe from this group, send email to [email protected].
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
  • Alberto Vena at Dec 11, 2012 at 11:19 pm
    Of course,

    https://github.com/nebulab/spree-subscriptions

    my latest commit on master is what I have done until now to be spree 1.2 compatible.

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno martedì 11 dicembre 2012, alle ore 23:58, Ryan Bigg ha scritto:
    Can you make this extension available to me so that I can poke and prod at it?

    On Tue, Dec 11, 2012 at 9:03 PM, Alberto Vena (mailto:[email protected])> wrote:
    Hi all,

    I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1 to 1.2. This version introduces new auth system and I'm having some trouble with it.

    Since the extension handle users we need to access to /admin/users/ path but lot of extension tests fail because of this error:

    Failure/Error: visit spree.admin_path
    ActionView::Template::Error:
    undefined method `admin_users_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>


    In fact if I run "rake routes" in the dummy app I can't see admin users paths and in the spree_auth_devise routes file (https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb) there's no trace of these routes.

    I'm including the "spree_auth_devise" through the gemspec in this way:

    Gem::Specification.new do |s|

    ...
    s.add_dependency 'spree_auth_devise', '~> 1.0.1'

    end

    and requiring it in the lib/spree-subscriptions.rb file.

    Can someone please help me understand where this path is currently defined and how can I include it in my app without to interfere with spree core modules?

    Thanks

    --
    Alberto Vena

    http://nebulab.it/

    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (mailto:[email protected]).
    To unsubscribe from this group, send email to spree-user+[email protected] (mailto:spree-user%[email protected]).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (mailto:[email protected]).
    To unsubscribe from this group, send email to spree-user+[email protected] (mailto:[email protected]).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected].
    To unsubscribe from this group, send email to [email protected].
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
  • Alberto Vena at Jan 11, 2013 at 10:50 am
    Ryan, I solved this problem with an hack for now. I just added:

    namespace :admin do
    resources :users
    end

    into routes of our extension and tests pass.

    This specific problem apart, is there a reason why this route are not defined into spree_auth_devise?

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno giovedì 13 dicembre 2012, alle ore 07:24, Ryan Bigg ha scritto:
    I can verify the issue exists right now, but I am too tired tonight to take a look at it in depth. I will take a look tomorrow morning!
    On Wednesday, December 12, 2012, Alberto Vena wrote:
    Of course,

    https://github.com/nebulab/spree-subscriptions

    my latest commit on master is what I have done until now to be spree 1.2 compatible.

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno martedì 11 dicembre 2012, alle ore 23:58, Ryan Bigg ha scritto:
    Can you make this extension available to me so that I can poke and prod at it?

    On Tue, Dec 11, 2012 at 9:03 PM, Alberto Vena (javascript:_e({}, 'cvml', '[email protected]');)> wrote:
    Hi all,

    I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1 to 1.2. This version introduces new auth system and I'm having some trouble with it.

    Since the extension handle users we need to access to /admin/users/ path but lot of extension tests fail because of this error:

    Failure/Error: visit spree.admin_path
    ActionView::Template::Error:
    undefined method `admin_users_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>


    In fact if I run "rake routes" in the dummy app I can't see admin users paths and in the spree_auth_devise routes file (https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb) there's no trace of these routes.

    I'm including the "spree_auth_devise" through the gemspec in this way:

    Gem::Specification.new do |s|

    ...
    s.add_dependency 'spree_auth_devise', '~> 1.0.1'

    end

    and requiring it in the lib/spree-subscriptions.rb file.

    Can someone please help me understand where this path is currently defined and how can I include it in my app without to interfere with spree core modules?

    Thanks

    --
    Alberto Vena

    http://nebulab.it/

    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (javascript:_e({}, 'cvml', '[email protected]');).
    To unsubscribe from this group, send email to spree-user+[email protected] (javascript:_e({}, 'cvml', 'spree-user%[email protected]');).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (javascript:_e({}, 'cvml', '[email protected]');).
    To unsubscribe from this group, send email to spree-user+[email protected] (javascript:_e({}, 'cvml', '[email protected]');).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (javascript:_e({}, 'cvml', '[email protected]');).
    To unsubscribe from this group, send email to spree-user+[email protected] (javascript:_e({}, 'cvml', 'spree-user%[email protected]');).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To post to this group, send email to [email protected] (mailto:[email protected]).
    To unsubscribe from this group, send email to spree-user+[email protected] (mailto:[email protected]).
    For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
    --
  • Ryan Bigg at Jan 14, 2013 at 1:10 am
    These routes should definitely be defined within spree_auth_devise. I don't
    know why they aren't there right now. Can you submit a PR to add them
    please?

    On Fri, Jan 11, 2013 at 9:50 PM, Alberto Vena wrote:

    Ryan, I solved this problem with an hack for now. I just added:

    namespace :admin do
    resources :users
    end

    into routes of our extension and tests pass.

    This specific problem apart, is there a reason why this route are not
    defined into spree_auth_devise?

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/

    Il giorno giovedì 13 dicembre 2012, alle ore 07:24, Ryan Bigg ha scritto:

    I can verify the issue exists right now, but I am too tired tonight to
    take a look at it in depth. I will take a look tomorrow morning!

    On Wednesday, December 12, 2012, Alberto Vena wrote:

    Of course,

    https://github.com/nebulab/spree-subscriptions

    my latest commit on master is what I have done until now to be spree 1.2
    compatible.

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/

    Il giorno martedì 11 dicembre 2012, alle ore 23:58, Ryan Bigg ha
    scritto:

    Can you make this extension available to me so that I can poke and prod at
    it?


    On Tue, Dec 11, 2012 at 9:03 PM, Alberto Vena wrote:

    Hi all,

    I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1
    to 1.2. This version introduces new auth system and I'm having some trouble
    with it.

    Since the extension handle users we need to access to /admin/users/ path
    but lot of extension tests fail because of this error:

    Failure/Error: visit spree.admin_path
    ActionView::Template::Error:
    undefined method `admin_users_path' for
    #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>

    In fact if I run "rake routes" in the dummy app I can't see admin users
    paths and in the spree_auth_devise routes file (
    https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb)
    there's no trace of these routes.

    I'm including the "spree_auth_devise" through the gemspec in this way:

    Gem::Specification.new do |s|

    ...
    s.add_dependency 'spree_auth_devise', '~> 1.0.1'

    end

    and requiring it in the lib/spree-subscriptions.rb file.

    Can someone please help me understand where this path is currently defined
    and how can I include it in my app without to interfere with spree core
    modules?

    Thanks

    --
    Alberto Vena

    http://nebulab.it/

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


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


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

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


    --

    --
  • Alberto Vena at Jan 14, 2013 at 8:18 am
    Yes, I will as soon as possible. Thanks for your help.

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno lunedì 14 gennaio 2013, alle ore 02:10, Ryan Bigg ha scritto:
    These routes should definitely be defined within spree_auth_devise. I don't know why they aren't there right now. Can you submit a PR to add them please?

    On Fri, Jan 11, 2013 at 9:50 PM, Alberto Vena (mailto:[email protected])> wrote:
    Ryan, I solved this problem with an hack for now. I just added:

    namespace :admin do
    resources :users
    end

    into routes of our extension and tests pass.

    This specific problem apart, is there a reason why this route are not defined into spree_auth_devise?

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno giovedì 13 dicembre 2012, alle ore 07:24, Ryan Bigg ha scritto:
    I can verify the issue exists right now, but I am too tired tonight to take a look at it in depth. I will take a look tomorrow morning!
    On Wednesday, December 12, 2012, Alberto Vena wrote:
    Of course,

    https://github.com/nebulab/spree-subscriptions

    my latest commit on master is what I have done until now to be spree 1.2 compatible.

    Thanks!

    --
    Alberto Vena

    http://nebulab.it/


    Il giorno martedì 11 dicembre 2012, alle ore 23:58, Ryan Bigg ha scritto:
    Can you make this extension available to me so that I can poke and prod at it?

    On Tue, Dec 11, 2012 at 9:03 PM, Alberto Vena wrote:
    Hi all,

    I'm upgrading one of our extensions (spree-subscriptions) from spree 1.1 to 1.2. This version introduces new auth system and I'm having some trouble with it.

    Since the extension handle users we need to access to /admin/users/ path but lot of extension tests fail because of this error:

    Failure/Error: visit spree.admin_path
    ActionView::Template::Error:
    undefined method `admin_users_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fc4d9dfdea0>


    In fact if I run "rake routes" in the dummy app I can't see admin users paths and in the spree_auth_devise routes file (https://github.com/spree/spree_auth_devise/blob/1-2-stable/config/routes.rb) there's no trace of these routes.

    I'm including the "spree_auth_devise" through the gemspec in this way:

    Gem::Specification.new do |s|

    ...
    s.add_dependency 'spree_auth_devise', '~> 1.0.1'

    end

    and requiring it in the lib/spree-subscriptions.rb file.

    Can someone please help me understand where this path is currently defined and how can I include it in my app without to interfere with spree core modules?

    Thanks

    --
    Alberto Vena

    http://nebulab.it/

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedDec 11, '12 at 10:03a
activeJan 14, '13 at 8:18a
posts6
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Alberto Vena: 4 posts Ryan Bigg: 2 posts

People

Translate

site design / logo © 2023 Grokbase