crud
Using RubyAmf for creating a CRUD application in Rails
CRUD applications can be easily created using Ruby on Rails as the backend and Flex as the frontend app using the XML format as demonstrated here.
Another way to create such applications is using the AMF protocol which is optimized for network communications and stores objects in binary format so consumes less bandwidth. Another compelling reason for using this library is that it doesn’t feel like a hack as it integrates very nicely with Rails :)
The Ruby port of this protocol known as RubyAmf can be downloaded from from here. More information about this protocol can be found here.
Lets start making the application.
Create a Rails Application:
1: > rails amf_demo
This will create a rails application. Please note that I am using Rails 2.1.2 for this example and it is not tested on any other Rails version.
Generate a scaffold:
1: > ruby script/generate scaffold blog_post title:string body:text
Create Tables and run Migrations:
1: > rake db:migrate
1: > rake db:create
Using Silverlight with Ruby on Rails
In this post I will be showing a really simple example of creating a Silverlight frontend for a Rails backend. This is what I think will be a three part series comparing Silverlight with Flex.
The steps will be:
- Creating a Rails application.
- Creating a frontend for it in silverlight.
- Creating a frontend for it in Flex.
- Comparing the approaches taken in both the frontends.
I will try to keep changes in the backend Rails application to a minimum.
Blogroll
Recent Posts
- Autocompleting ssh, rake, cap command parameters using PowerShell
- Using RubyAmf for creating a CRUD application in Rails
- Multiple ways to open PowerShell in the current Explorer window
- Context sensitive auto-completion using PowerShell, PowerTab and GIT
- Displaying GIT Branch on your PowerShell prompt
XBox Live
Songs I like
Categories
- adobe (4)
- amarok (1)
- C# (2)
- chat application (1)
- crud (2)
- cygwin (1)
- explorer (1)
- expression blend (1)
- flex (4)
- FOSS (2)
- free (1)
- GIT (3)
- ID3 (1)
- java (1)
- microsoft (3)
- mxml (2)
- nokia (1)
- open source (5)
- perl (1)
- powerpoint (2)
- powershell (3)
- rails (3)
- right click (1)
- ruby (9)
- ruby on rails (3)
- security (3)
- silverlight (4)
- smart playlist (1)
- socket (1)
- software (7)
- ssh (1)
- sudo (1)
- tabs (1)
- tomcat (1)
- user interface (6)
- vista (9)
- vista, security (2)
- visual studio 2008 (1)
- win32ole (1)
- windows (13)
- windows media player (1)
- wpf (1)
- xaml (4)
- XP (3)
