Hi,

I have added a route to my routes.rb as following,

get "/order/:player_id/:order", :to => 'share#order_renderer', :as =>
:order_feed

It works for me in the app but when I am running the spec file for, it
says, not route matches for this controller, action, parameters.

Regards,
Sumit

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Td11nBAq67kJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Colin Law at Feb 13, 2013 at 1:02 pm

    On 13 February 2013 12:31, Sumit Srivastava wrote:
    Hi,

    I have added a route to my routes.rb as following,

    get "/order/:player_id/:order", :to => 'share#order_renderer', :as =>
    :order_feed

    It works for me in the app but when I am running the spec file for, it says,
    not route matches for this controller, action, parameters.
    Since for problems of this type the information required to solve it
    is in the detail, please show the exact error (copy/paste it), the
    line of code in your test that causes it and also the url you are
    using that works (again, copy/paste from browser).

    Colin

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Sumit srivastava at Feb 13, 2013 at 1:09 pm

    On 13 February 2013 18:32, Colin Law wrote:

    On 13 February 2013 12:31, Sumit Srivastava
    wrote:
    Hi,

    I have added a route to my routes.rb as following,

    get "/order/:player_id/:order", :to => 'share#order_renderer', :as =>
    :order_feed

    It works for me in the app but when I am running the spec file for, it says,
    not route matches for this controller, action, parameters.
    Since for problems of this type the information required to solve it
    is in the detail, please show the exact error (copy/paste it), the
    line of code in your test that causes it and also the url you are
    using that works (again, copy/paste from browser).
    Resolved it. One of the parameters being passed was nil and hence it was
    not able to determine the route.
    Thanks for the help.

    Colin

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 13, '13 at 12:31p
activeFeb 13, '13 at 1:09p
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Sumit srivastava: 2 posts Colin Law: 1 post

People

Translate

site design / logo © 2022 Grokbase