On May 13, 6:12 am, Yongning Liang <[email protected]> wrote:
> Does RoR has an easy way to tell different about GET and POST params just
> like $_GET and $_POST in PHP?

You can use the request object:

case request.method
when :get
  #Do stuff for GET method
  return
when :post
  #Do stuff for POST method
  return
end


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to