That is the only route for that controller.

On Sat, Mar 29, 2014 at 12:33 PM, Loganathan Sellapa <
loganathan...@gmail.com> wrote:

> Hi,
>
> Can you copy your full routes.rb, I believe you should place the route at
> before the route
> "resources :payment"
>
> Regards,
> Logan
>
> Sent from mobile device
>
> On 29 Mar 2014 22:34, "Me" <chabg...@gmail.com> wrote:
> >
> > Route,  post 'payments/:list_item_id', to: 'payments#buy', :as => :buy
> >
> >
> > On Saturday, March 29, 2014 12:02:45 PM UTC-5, Me wrote:
> >>
> >> I have a rails 4 app that has a link_to with a post method but I keep
> getting:
> >>
> >> No route matches [GET] "/payments/136330"
> >>
> >> <%= link_to("Buy Now", buy_path(list_item), :method => :post) %>
> >>
> >> Ideas??
> >
> > --
> > 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+unsubscr...@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/msgid/rubyonrails-talk/21350ab3-a33d-41cb-9061-e103db36b31b%40googlegroups.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/rubyonrails-talk/3kI7VkfKp4Q/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> rubyonrails-talk+unsubscr...@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/msgid/rubyonrails-talk/CAD_i5MEUqTeM9YMdJCJKUL9Sa9MmCVmtT6ka2smS2TtNtooNZA%40mail.gmail.com<https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEUqTeM9YMdJCJKUL9Sa9MmCVmtT6ka2smS2TtNtooNZA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 


*"In matters of style, swim with the current; in matters of principle,
stand like a rock."  Thomas Jefferson*

-- 
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+unsubscr...@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/msgid/rubyonrails-talk/CAKohUFyG9%2BcZ3RoLXUUzmEsKmJtdCxq66T7qJYHjKNcYvTnKPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to