Ruby on Rails Saturday, March 29, 2014

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.

No comments:

Post a Comment