> 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