Forum: Ruby on Rails Contact page, how to fit into RESTful design?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
goodieboy (Guest)
on 2007-02-12 17:58
(Received via mailing list)

I'm working on an app that uses REST. I'm kind of stumped on this...
where does a "contact" page fit in? ... "contact" sounds like a verb.
Would I change the url from "/contact" to "/us" and then the post
would handle the form submission? The contact page is only for sending
a message, so there really is no "resource", well except for the
person being contacted right? Is that the resource? And am I right in
saying that unless I was storing the contact messages in a database,
there is no PUT or DELETE methods?

Rick O. (Guest)
on 2007-02-12 18:58
(Received via mailing list)
On 2/12/07, goodieboy <removed_email_address@domain.invalid> wrote:
> there is no PUT or DELETE methods?
Not everything in your app has to be REST.  You could look for the
'hidden resource,' such as Inquiry, Feedback, Comment, etc.  Assuming
you did that, PUT may not be necessary, but DELTE will be, unless you
plan on keeping every bit of it.

Rick O.
This topic is locked and can not be replied to.