Vous êtes sur la page 1sur 28

tt i n g s ta r te d

ge
on
AJAX Rails
javascript
used to be the
enemy
suddenly
javascript is cool?
why?
good support
professional tools
publicity!
AJAX is...
asynchronous
javascript and
xml
AJAX is...
a round trip to the server,
without reloading
Regular Request AJAX Request
Browser Request Browser Request

Web Web
Server Server

Rails App Rails App


and Rails is...
freakin’ sweet!
ra i l s

java sc r i p t
ra i l s

ajax
sexy prev ie w

what you can do


links
regular link
ajax link
that code...
is turned into javascript
forms
regular form
ajax form
that code...
is turned into javascript
RJS
RJS
ruby javascript templates
like views, but output js
way cooler than sliced
bread
other cool stuff
drag & drop
edit in place
sliders
autocomplete
& more...
b i ts & b o b s
the stuff you get
rails includes
prototype.js
scriptaculous
rjs plugin
where?
yourapp/public/javascripts
js helpers
JavaScriptHelper
JavaScriptMacrosHelper
ScriptaculousHelper
PrototypeHelper
troubleshootin’
firefox
firebug
web developer extension
learn more
thomas fuchs’ talk
www.slash7.com
api.rubyonrails.org

Vous aimerez peut-être aussi