Flex RubyAMF Screencasts
There are some new RubyAMF screencasts up, Aaron Smith walks you through tutorials on…
Flex with stand-alone RubyAMF
Flex with the RubyAMF Rails plug-in
Flash and authentication
Flash and custom fault objects
RubyAMF is also now 1.2 with respond_to functionality, so you can use one controller action to return anything your heart desires RHTML, AMF, XML, JSON you name it.
def MyController < ActionController::Base
def list
respond_to do |format|
format.amf { render :amf => User.find(:all) }
end
end
end
Of course AMF is teh bestest

This entry was written by
Alastair, posted on
July 19, 2007 at 9:25 am, filed under
Flash,
Flash Remoting,
Flex,
Ruby on Rails. Bookmark the
permalink. Follow any comments here with the
RSS feed for this post.
or leave a trackback:
Trackback URL.
© Copyright 2006 - 2010 Alastair Dawson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
5 Comments
Hey, xml w/E4X is pretty nice duh! I wouldn’t rule out xml for now on……..AJAX kids, the bus might be delayed!
Also remember to register the mime type; put this in environment.rb:
Mime::Type.register “application/x-amf”, :amf
Thanks again for the blog post. Yes, AMF is the best! I just put up a rails plugin installer.. blog.rubyamf.org – Thanks again – Aaron.
Two Rails Remoting Powerhouses on the same comment list.
Thanks to both of you for Juggernaut (Alex) and Aaron for RubyAMF.
ScreenCasts show 404
2 Trackbacks
[...] Yee-haw! By using the powers of RubyAMF we have just grabbed data from a database and written some right back at speeds much faster than XML or JSON. Plus, we still get a HTML front end for those types that fear flash. [...]
[...] Yee-haw! By using the powers of RubyAMF we have just grabbed data from a database and written some right back at speeds much faster than XML or JSON. Plus, we still get a HTML front end for those types that fear flash. [...]