Displaying 1 result from an estimated 1 matches for "do_something2".
Did you mean:
do_something
2007 Oct 24
5
Do I have to care about other methods than GET and POST?
Hi all
Sometimes I check in a controller if the method is GET or POST. But
afaik there are other methods - do I have to care about them?
Is the following enough?
if request.get?
...
elsif request.post?
...
end
Or do I have to add also an else block?
if request.get?
...
elsif request.post?
...
else
raise "Boah!"
end
Thanks for infos
Josh
--
Posted via http://www.ruby-forum.com/.