On 2/12/07, goodieboy <goodieBoy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi,
>
> 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?
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 Olson
http://weblog.techno-weenie.net
http://mephistoblog.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---