Get form data

10 views
Skip to first unread message

蘋果

unread,
Oct 9, 2021, 4:49:40 PM10/9/21
to Roda
how can i get form data from request

Jeremy Evans

unread,
Oct 9, 2021, 8:35:54 PM10/9/21
to ruby...@googlegroups.com
On Sat, Oct 9, 2021 at 1:49 PM 蘋果 <thiagochen...@gmail.com> wrote:
how can i get form data from request

r.params is the most common way, though that merges the form data from the body with the data from the query string.  You can use r.POST if you only want the form data submitted in the request body, or r.GET if the form's action is set to GET and the data is submitted in the query string of the request.

Thanks,
Jeremy
Reply all
Reply to author
Forward
0 new messages