Ruby on Rails Saturday, March 29, 2014

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

No comments:

Post a Comment