Search the web
Sign In
New User? Sign Up
rest-discuss · REST Discussion Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Rails RESTful?   Message List  
Reply | Forward Message #7101 of 14029 |
Re: Re: [rest-discuss] Rails RESTful?

> Looks like the first round of information on Rails's enhancements are
> coming out:
>
> http://weblog.rubyonrails.com/2006/11/23/rails-1-2-release-candidate-1
>
> I still haven't had a chance to look into any of this but I'm starting
> to get excited :)

Thanks, Ryan. We've definitely drunk the kool-aid at this point.
Building resource-oriented applications will be the Rails default
before too long. By Rails 2.0, we'll have the new scaffold_resource be
the default scaffolder. Indoctrinate good RESTful practices to people
even before they know or care as to why it matters.

So I'm eager to hear more from you guys here on what we could do
better. Another neat short-cut we recently added is the head command,
used like this:

respond_to do |format|
format.html { redirect_to post_url(post) }
format.xml { head :created, :location => post_url(post) }
end

When making a XML request, you'll get a 201 Created with the URL for
the new resource in the Location header. And of course no content is
being returned.
--
David Heinemeier Hansson
http://www.loudthinking.com -- Broadcasting Brain
http://www.basecamphq.com -- Online project management
http://www.backpackit.com -- Personal information manager
http://www.rubyonrails.com -- Web-application framework



Tue Nov 28, 2006 1:13 am

webster132
Offline Offline
Send Email Send Email

Forward
Message #7101 of 14029 |
Expand Messages Author Sort by Date

The current "edge" (SVN) version of the Ruby on Rails framework contains support for RESTful controllers (or so it claims). I'd be very interested in opinions...
Stefan Tilkov
stilkov
Offline Send Email
Nov 13, 2006
10:28 pm

... Seems like a good convention. ... Very reasonable. I couldn't persuade the mod_python people that they needed to support PUT for FORM data. All in all it...
Nic James Ferrier
nferrier_tap...
Offline Send Email
Nov 13, 2006
11:19 pm

... It looks way better than it used to be. This would be cool: (5) GET /employees/{key} Fwiw, I don't like the way rails exposes pks in URLs, so {key}...
Bill de hOra
bdehora
Offline Send Email
Nov 14, 2006
1:22 am

... STRONGLY AGREE!!! I like the way WordPress uses "slugs" instead (but I hate the name "slug!") -Mike Schinkel http://www.mikeschinkel.com/blogs/ ...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 14, 2006
3:15 am

... You can use slugs just as easily as you can use surrogate integer keys in Rails. The integer PK is used by default when new models and controllers are ...
Ryan Tomayko
rtomayko
Offline Send Email
Nov 14, 2006
5:19 am

... Actually, it is no where near as easy. The default generates code that you have to manually modify and maintain which is a lot of work for a large system....
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 14, 2006
6:54 am

... I'm not sure what you're referring to here. The alternative to generating that code is hand-coding the exact same code, which is a fine option too. The ...
Ryan Tomayko
rtomayko
Offline Send Email
Nov 14, 2006
4:24 pm

... that code is hand-coding the exact same code, which is a fine option too. Not true. There are at least two other alternates (one of which is code ...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 15, 2006
1:11 pm

... Django has a SlugField type that can be autopopulated from other fields on creation. It wouldn't be so hard to clone for Rails... cheers Bill...
Bill de hOra
bdehora
Offline Send Email
Nov 14, 2006
5:56 pm

Point taken, but that doesn't seem to be related to REST, more towards got (or bad) implementation practice. (I don't really mind, as long as the framework...
Stefan Tilkov
stilkov
Offline Send Email
Nov 14, 2006
8:53 pm

... I'm running quite a bit on edge rails but haven't had a chance to take a deep look into the enhancements. I'm encouraged by what I have seen. The routing ...
Ryan Tomayko
rtomayko
Offline Send Email
Nov 14, 2006
5:07 am

Looks like the first round of information on Rails's enhancements are coming out: http://weblog.rubyonrails.com/2006/11/23/rails-1-2-release-candidate-1 I...
Ryan Tomayko
rtomayko
Offline Send Email
Nov 23, 2006
4:31 pm

... Thanks, Ryan. We've definitely drunk the kool-aid at this point. Building resource-oriented applications will be the Rails default before too long. By...
David Heinemeier Hans...
webster132
Offline Send Email
Nov 28, 2006
1:48 am

... Have you considered supporting the new URI Template[1] format for URL configuration? -Mike Schinkel http://www.mikeschinkel.com/blogs/ ...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 30, 2006
12:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help