Ruby on Rails
Monday, April 7, 2014
On Sunday, April 6, 2014 10:20:37 PM UTC+1, Me wrote:
The one I posted was a slightly different one but still gives me the same error. It does not seem to recognize the link is a 'POST" even though the actual link on the page is a post.
You'll send people round in circles if you're mixing up different urls & different errors. As others have said, this sounds suspicious like a javascript error. Check your browser console for javascript errors. You might also try sticking some (javascript) breakpoints in the rails ubobtrusive js code, to check what it is doing.
Fred
No route matches [GET] "/list_items/136327/buy"
The action 'buy' is in the liat_items_controller.On Sun, Apr 6, 2014 at 4:16 PM, Frederick Cheung <frederick.cheung@gmail.com> wrote:
On Sunday, April 6, 2014 7:29:56 PM UTC+1, Me wrote:Thanks, here is the link generated, <a data-method="post" href="/list_items/136298/buy" rel="nofollow">Buy Now</a>That's not the same url as the once mentioned in the error. Is the post request completing OK and then redirecting to a non-existent url?Fred
--To view this discussion on the web visit https://groups.google.com/d/
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+unsubscribe@googlegroups.com .
To post to this group, send email to rubyonrails-talk@googlegroups.com .msgid/rubyonrails-talk/ .9a744c1b-ef18-4442-a7e1- a55513c4e4eb%40googlegroups. com --
"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+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/22080a23-b319-4b65-88f5-20d820487e9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment