Forum: Rails France connaitre type requette

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
373e8ca5f9ee2167de04083c9c908b2c?d=identicon&s=25 Lune Lune (lune9)
on 2009-02-25 14:57
Bonjour,

J'aimerais savoir de quelle type est la requette que je recois. (get ou
post)



Merci d'avance
2fd0206c71a1b22a9cc6293f38537461?d=identicon&s=25 Cyril Mougel (shingara)
on 2009-02-25 15:00
(Received via mailing list)
Lune Lune wrote:
> Bonjour,
>
> J'aimerais savoir de quelle type est la requette que je recois. (get ou
> post)
>
>
>
> Merci d'avance
>
get? post?

--
Cyril Mougel
http://blog.shingara.fr
373e8ca5f9ee2167de04083c9c908b2c?d=identicon&s=25 Lune Lune (lune9)
on 2009-02-25 15:02
>>
> get? post?
>

Sur quel objet?
B7f80de9fb9a11da74b1c941a8c562ba?d=identicon&s=25 Stéphane Akkaoui (Guest)
on 2009-02-25 15:05
(Received via mailing list)
Le 25 févr. 09 à 15:02, Lune Lune a écrit :
>> get? post?
>>
>
> Sur quel objet?

L'objet request de otn controlleur

http://api.rubyonrails.com/classes/ActionControlle...
A99870c1391c39da2089649745965bda?d=identicon&s=25 Jean-François Trân (Guest)
on 2009-02-25 15:05
(Received via mailing list)
Le 25 février 2009 15:02, Lune Lune <list-incoming@andreas-s.net> a écrit :
>
>> get? post?
>>
>
> Sur quel objet?

request.get?
request.post?
request.head?
request.put?
request.delete?

et tu as request.method


   -- Jean-François.


--
http://twitter.com/underflow_
373e8ca5f9ee2167de04083c9c908b2c?d=identicon&s=25 Lune Lune (lune9)
on 2009-02-25 15:10
Stéphane Akkaoui wrote:
> Le 25 f�vr. 09 � 15:02, Lune Lune a �crit :
>>> get? post?
>>>
>>
>> Sur quel objet?
>
> L'objet request de otn controlleur
>
> http://api.rubyonrails.com/classes/ActionControlle...

Merci ca marche !
This topic is locked and can not be replied to.