[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] Rails 0.11.0: Ajax, Pagination, Non-vhost, Incoming mail

David Heinemeier Hansson

3/22/2005 2:22:00 PM

With the inclusion of Ajax helpers in Rails 0.11.0, we've addressed the
most important concern holding back large scale Ajax use: Writing DHTML
by hand. Manipulating the DOM by hand is a labor-intensive and
error-prone process rife with frustration and cross-browser
incompatibility. With the Ajax support in Rails, writing manual
Javascript/DHTML is (almost) a thing of the past.

Through a handful of helper tags, we've exposed an approach that relies
on a bare minimum of support on the client-side (XMLHttpRequest and
innerHTML) while offloading the generation of page fragments to
familiar constructs like ERb and Builder templates. This means that
you'll build your Ajax integration using all the tools you're familiar
with and safely let the Javascript/DOM magic be off-loaded to the Rails
helper and library.

Sam Stephenson has been the architect behind transforming my meager
Javascript attempts into a fully object-oriented library that the Rails
helper calls to do its dirty work. He has also done a video
demonstrating how he can turn a create form into Ajax
(www.rubyonrails.com/media/video/rails-ajax.mov) in just a few minutes.
While this may appear a bit complicated, its mostly because the
application Sam's integrating with lets the controller generate the
URL, which normally isn't the case.

While the Ajax support is certainly the star of this release, we have
much more. Another Sam Stephenson goodie is Pagination support, which
lets you seamlessly spread the results of a list across multiple pages
by combining controller-side and view-side support for pages and
navigation.

Also of note is that Rails applications no longer require their own
virtual host to be easy to setup. It's now possible to symlink the
public directory from underneath an existing hierarchy, so your
application can live under hieraki in /community/hieraki. This should
make it considerably easier to install and distribute applications that
need to live on shared servers. If you want to make your own
application vhost agnostic, have a look at the AssetTagHelper that'll
automatically create the proper paths for images, stylesheets, and the
likes.

The Action Mailer gained inbound capabilities in this release. By
implementing the receive(email) method, you can target your Action
Mailer from fx postfix and have it process incoming emails. We've even
enhanced TMail to make it easy to process international emails (auto
converting to UTF-8) and handling file attachments. See the example in
the README.

On top of all that there's a new script/runner for making it easy to
call your Rails domain model from CRON, there's a new Flash module,
there's database indifferent limit/offset, and a truckload of fixes,
enhancements, and tweaks. Do enjoy!

* Rails : http://rails.rubyonrails.com/files/CHAN...
* Active Record : http://ar.rubyonrails.com/files/CHAN...
* Action Pack : http://ap.rubyonrails.com/files/CHAN...
* Active Support : http://as.rubyonrails.com/files/CHAN...
* Action Mailer : http://am.rubyonrails.com/files/CHAN...
* Action Web Service : http://aws.rubyonrails.com/files/CHAN...

Updating: If you?re coming from Rails 0.10.1, just run rails --skip in
the root of your application to get the new files. You shouldn?t need
to change any code.
--
David Heinemeier Hansson,
http://www.basec... -- Web-based Project Management
http://www.rubyon... -- Web-application framework for Ruby
http://www.loudthi... -- Broadcasting Brain



7 Answers

Curt Hibbs

3/22/2005 2:39:00 PM

0

In the "good old days" we used to speak of Internet-Time to refer to things
that change and mutate rapidly. Well, just as Rails has pushed web app
development to new productivity heights, so have you redefined
Internet-Time... we now have Rails-Time!

Congratulations!

Curt

David Heinemeier Hansson wrote:
>
> With the inclusion of Ajax helpers in Rails 0.11.0, we've addressed the
> most important concern holding back large scale Ajax use: Writing DHTML
> by hand. Manipulating the DOM by hand is a labor-intensive and
> error-prone process rife with frustration and cross-browser
> incompatibility. With the Ajax support in Rails, writing manual
> Javascript/DHTML is (almost) a thing of the past.
>
> Through a handful of helper tags, we've exposed an approach that relies
> on a bare minimum of support on the client-side (XMLHttpRequest and
> innerHTML) while offloading the generation of page fragments to
> familiar constructs like ERb and Builder templates. This means that
> you'll build your Ajax integration using all the tools you're familiar
> with and safely let the Javascript/DOM magic be off-loaded to the Rails
> helper and library.
>
> Sam Stephenson has been the architect behind transforming my meager
> Javascript attempts into a fully object-oriented library that the Rails
> helper calls to do its dirty work. He has also done a video
> demonstrating how he can turn a create form into Ajax
> (www.rubyonrails.com/media/video/rails-ajax.mov) in just a few minutes.
> While this may appear a bit complicated, its mostly because the
> application Sam's integrating with lets the controller generate the
> URL, which normally isn't the case.
>
> While the Ajax support is certainly the star of this release, we have
> much more. Another Sam Stephenson goodie is Pagination support, which
> lets you seamlessly spread the results of a list across multiple pages
> by combining controller-side and view-side support for pages and
> navigation.
>
> Also of note is that Rails applications no longer require their own
> virtual host to be easy to setup. It's now possible to symlink the
> public directory from underneath an existing hierarchy, so your
> application can live under hieraki in /community/hieraki. This should
> make it considerably easier to install and distribute applications that
> need to live on shared servers. If you want to make your own
> application vhost agnostic, have a look at the AssetTagHelper that'll
> automatically create the proper paths for images, stylesheets, and the
> likes.
>
> The Action Mailer gained inbound capabilities in this release. By
> implementing the receive(email) method, you can target your Action
> Mailer from fx postfix and have it process incoming emails. We've even
> enhanced TMail to make it easy to process international emails (auto
> converting to UTF-8) and handling file attachments. See the example in
> the README.
>
> On top of all that there's a new script/runner for making it easy to
> call your Rails domain model from CRON, there's a new Flash module,
> there's database indifferent limit/offset, and a truckload of fixes,
> enhancements, and tweaks. Do enjoy!
>
> * Rails : http://rails.rubyonrails.com/files/CHAN...
> * Active Record : http://ar.rubyonrails.com/files/CHAN...
> * Action Pack : http://ap.rubyonrails.com/files/CHAN...
> * Active Support : http://as.rubyonrails.com/files/CHAN...
> * Action Mailer : http://am.rubyonrails.com/files/CHAN...
> * Action Web Service : http://aws.rubyonrails.com/files/CHAN...
>
> Updating: If you?re coming from Rails 0.10.1, just run rails --skip in
> the root of your application to get the new files. You shouldn?t need
> to change any code.
> --
> David Heinemeier Hansson,
> http://www.basec... -- Web-based Project Management
> http://www.rubyon... -- Web-application framework for Ruby
> http://www.loudthi... -- Broadcasting Brain
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
>



Gyoung-Yoon Noh

3/22/2005 3:01:00 PM

0

On Tue, 22 Mar 2005 23:21:51 +0900, David Heinemeier Hansson
<david@loudthinking.com> wrote:
> With the inclusion of Ajax helpers in Rails 0.11.0, we've addressed the
> most important concern holding back large scale Ajax use: Writing DHTML
> by hand. Manipulating the DOM by hand is a labor-intensive and
> error-prone process rife with frustration and cross-browser
> incompatibility. With the Ajax support in Rails, writing manual
> Javascript/DHTML is (almost) a thing of the past.
>

error-prone process *rife* with frustration?

lol

--
http://nohmad.su...


markusjais

3/23/2005 9:42:00 AM

0


this is all great news.

yesterday I followed the weblog on rubyonrails.org.

book 3 and shortly after that book 4. and even by bruce tate.

that's so cool.
Rails is no hype, but becoming increasingly popular.
and astonishingly fast.

can't wait to have more time to learn more about Rails.
currently I am doing some PHP stuff in my free time
and it is not as funny as I thought it would be.
a lot of code for database stuff. in Rails this all seems to easy.

unfortunately I am stuck with PHP for this projekt but for
future stuff (at least in my spare time) I will hopefully be able
to switch to Rails.

keep up the great work.

regards

Markus

Guillaume Marcais

3/24/2005 6:59:00 PM

0

On Tue, 2005-03-22 at 23:21 +0900, David Heinemeier Hansson wrote:

> While the Ajax support is certainly the star of this release, we have
> much more. Another Sam Stephenson goodie is Pagination support, which
> lets you seamlessly spread the results of a list across multiple pages
> by combining controller-side and view-side support for pages and
> navigation.

Question: how well does the 'Ajaxed' code degrade on browser that do not
support JavaScript?

Guillaume.



Glenn Smith

3/24/2005 7:23:00 PM

0

Really starting to enjoy Rails.
How do I upgrade to v0.11 though? Gem (0.8.8) only brings back 0.10.



On Fri, 25 Mar 2005 03:59:22 +0900, Guillaume Marcais <guslist@free.fr> wrote:
> On Tue, 2005-03-22 at 23:21 +0900, David Heinemeier Hansson wrote:
>
> > While the Ajax support is certainly the star of this release, we have
> > much more. Another Sam Stephenson goodie is Pagination support, which
> > lets you seamlessly spread the results of a list across multiple pages
> > by combining controller-side and view-side support for pages and
> > navigation.
>
> Question: how well does the 'Ajaxed' code degrade on browser that do not
> support JavaScript?
>
> Guillaume.
>
>


--

All the best
Glenn
Aylesbury, UK


Shalev NessAiver

3/24/2005 7:30:00 PM

0

Ummm, "(sudo) gem install rails" should get you the latest one.

Either that or "(sudo) gem update"



On Mar 24, 2005, at 2:23 PM, Glenn Smith wrote:

> Really starting to enjoy Rails.
> How do I upgrade to v0.11 though? Gem (0.8.8) only brings back 0.10.
>
>
>
> On Fri, 25 Mar 2005 03:59:22 +0900, Guillaume Marcais
> <guslist@free.fr> wrote:
>> On Tue, 2005-03-22 at 23:21 +0900, David Heinemeier Hansson wrote:
>>
>>> While the Ajax support is certainly the star of this release, we have
>>> much more. Another Sam Stephenson goodie is Pagination support, which
>>> lets you seamlessly spread the results of a list across multiple
>>> pages
>>> by combining controller-side and view-side support for pages and
>>> navigation.
>>
>> Question: how well does the 'Ajaxed' code degrade on browser that do
>> not
>> support JavaScript?
>>
>> Guillaume.
>>
>>
>
>
> --
>
> All the best
> Glenn
> Aylesbury, UK
>



Glenn Smith

3/24/2005 8:55:00 PM

0

Mmm. Have just run "gem install rails" here and sure enough it comes
down as 0.11.
When I did this on my PC at work it didn't. I do have a proxy in the
way at work, but I use -p <proxy> to get through it.

"gem update" didn't work on my work PC either. Maybe I need to
uninstall rails first?

Doesn't matter until next Tuesday now anyway.

G


On Fri, 25 Mar 2005 04:30:19 +0900, Shalev NessAiver
<shalev@simplyphysics.com> wrote:
> Ummm, "(sudo) gem install rails" should get you the latest one.
>
> Either that or "(sudo) gem update"
>
>
> On Mar 24, 2005, at 2:23 PM, Glenn Smith wrote:
>
> > Really starting to enjoy Rails.
> > How do I upgrade to v0.11 though? Gem (0.8.8) only brings back 0.10.
> >
> >
> >
> > On Fri, 25 Mar 2005 03:59:22 +0900, Guillaume Marcais
> > <guslist@free.fr> wrote:
> >> On Tue, 2005-03-22 at 23:21 +0900, David Heinemeier Hansson wrote:
> >>
> >>> While the Ajax support is certainly the star of this release, we have
> >>> much more. Another Sam Stephenson goodie is Pagination support, which
> >>> lets you seamlessly spread the results of a list across multiple
> >>> pages
> >>> by combining controller-side and view-side support for pages and
> >>> navigation.
> >>
> >> Question: how well does the 'Ajaxed' code degrade on browser that do
> >> not
> >> support JavaScript?
> >>
> >> Guillaume.
> >>
> >>
> >
> >
> > --
> >
> > All the best
> > Glenn
> > Aylesbury, UK
> >
>
>


--

All the best
Glenn
Aylesbury, UK