Hi Vishal,
You can do the same in one single method in any controller and check
request.method which will have methods ''get'' or
''post''
def my_method
if :post == request.method
#Process post
else
#Process get - usually just render the form
end
end
Regards,
Vishwanath
On Thu, Dec 18, 2008 at 12:36 PM, vishal mehta
<vishalmehta11-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
> Hello everyone,
> I am new to rails and I am trying to run simple get post put methods
> in ruby rails. Can any one tell me where do I implement that methods.
> Can you provide any source where I can go through and learn these
> methods...
> Thanks..
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---