Forum: Ruby on Rails Restful rails

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.
chaitanya (Guest)
on 2009-05-02 14:35
(Received via mailing list)
I have some questions regarding restful rails applications.
Is the concept of restful so tied to the database ?

What if a application does not use a database  at all  or if the
application is using a legacy database which you cannot modify or does
not have the concept of ids. How will restful urls and crud come into
this picture.
Eric (Guest)
on 2009-05-02 19:02
(Received via mailing list)
On May 1, 5:03 pm, chaitanya <removed_email_address@domain.invalid> wrote:
> I have some questions regarding restful rails applications.
> Is the concept of restful so tied to the database ?
>
> What if a application does not use a database  at all  or if the
> application is using a legacy database which you cannot modify or does
> not have the concept of ids. How will restful urls and crud come into
> this picture.

REST has nothing to do with the database, it's just a convention
oriented around HTTP verbs and default actions associated with them.
That is, it's between a browser (or other client) and the controllers.

http://en.wikipedia.org/wiki/Representational_State_Transfer
Julian L. (Guest)
on 2009-05-03 14:14
(Received via mailing list)
Hey,

It's more about resources than the database. They're not one to one,
but the way most rails models are designed usually, they're very close
to a resource. For instance, you may have a product resource, which
might have an attribute called name. The data for that might not
actually be inside the products table, or perhaps your product
resource might aggregate several associations of the product model.
Either way there's no implicit direct coupling of models with
resources, but more often they tend to be close. Hope that helps.

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 02/05/2009, at 10:03 AM, chaitanya
This topic is locked and can not be replied to.