[Rails] Re: Retrieving ID from a POST URI
bradigan wrote in post #1033619:
> To note, I only have the URI in a string as its from a POST from an
> external API as JSON Data.
> Basically I need this:
>
> http://www.someapp.com/events/12345
For what it's worth, a request to that URL should be sent using the HTTP
PUT method. If I'm not mistaken Rails should then automatically provide
"12345" in params[:id].
But, the provided solutions should work for your needs.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home