Introduction video to ActiveResources RESTful Rails controller actions (://URLFAN)

How popular is your website?  
Enter a website above, we'll show you who's talking about it right now.
We're currently ranking the popularity of 3,783,534 websites by parsing 124,993,989 blog posts from 2,073,523 blog feeds.
Article Structure
9 paragraphs
2455 characters
5 images
4 outgoing links

Introduction video to ActiveResources RESTful Rails controller actions

Post Date: Jan 13, 2007 1:28 p.m.
Ranked website: stephenchu.blogspot.com (Not Ranked Yet)

For full text please visit source:
http://feeds.stephenchu.com/~r/stephenchu/~3/75059523/introduction-vid...


The world is talking about REST . Just when you are reading voraciously about Ruby and Rails, what would be nicer than having DHH to tell you what the next version of Rails’ vision is regarding the whole REST idea? Consider how you would write 4 named routes for the following ActiveController actions today: POST /people/create GET /people/show/1 POST /people/update/1 POST /people/destroy/1 ActionController::Routing::Routes.draw do |map| map.with_options(:controller => ’people’) do |people| people.connect ’people/create’, :action => ’create’ people.connect ’people/show/:id’, :action => ’show’ people.connect ’people/update/:id’, :action => ’update’ people.connect ’people/destroy/:id’, :action => ’destroy’ end end How many times have you done CRUD on a model? With ActiveResources, all your need is 1 line of route setting: POST /people ...

Content suppressed by ://URLFAN, for full article visit source

Websites mentioned in article
(click for rank details):

tomayko.com
link.brightcove.com
loudthinking.com
topfunky.com

Buzz Words mentioned in article:

No buzz words were found in article
How popular is feeds.stephenchu.com?

Click here to view stats and graphs for stephenchu.blogspot.com


More posts from feeds.stephenchu.com

Ruby constructor dependency injection... or not?
From: stephenchu.blogspot.com
Post Date: 2006-09-13 19:25:00

Dependency injection has proven to be something a black belt unit tester must know about if you are serious about unit testing. If you have written some sort of unit tests, would you be jealous if I tell you for some of us, running all these unit tests takes sub-1 second ? In C# and Java, actively practising Dependency Injection makes mocking and stubbing out dependencies much easier, and thus tests become easy to write, and run fast because they do not need to make time consuming calls. In fa... more
Why create database migrations, when you don’t need to?
From: feeds.stephenchu.com
Post Date: 2007-12-13 16:15:00

Rails out of the box supports database migration. It allows Rails programmers to be more Agile, do less database BDUF and instead change the database schema as the requirements change and the business wants it. Writing a migration is also as easy as running a command line script/generate migration and then executing it with rake db:migrate. Database migration is useful for two reasons. Number one is to allow developers to change the database schema. This can be as simple as a single ALTER TAB... more
The last "D" in TDD means more than just "Development"
From: feeds.stephenchu.com
Post Date: 2007-12-04 13:50:00

When asked "Do you write tests?", a lot of developers these days will say "of course" as their answers. However, not everyone can admit to doing TDD (Test Driven Development) correctly. Test Driven Development says, a developer will write a test that fails first, then write code to make the test pass, and refactor when possible, and repeat. This is what most people’s TDD rhythm is. For the most part this is fairly easy to do. But to reach the next level, one has to understand TDD a... more
Passing multiple parameters in observe_field
From: feeds.stephenchu.com
Post Date: 2007-12-02 01:35:00

Sometimes you just want to pass multiple parameters on your ajax observe_field web request for processing. If you Google around, you will find out there are multiple ways of doing it. And here is yet another way: observe_field:target_dom_id, :url=> some_named_route_url, :method=> :get, :with=> "Form.serializeElements($(’text_field_one’, ’text_field_two’, ...))" where ’text_field_one’ and ’text_field_two’ are html form elemen... more


Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed, posts, or domain from ranking and analysis, please contact us.

© 2006-2008 ://URLFAN (Server 202 Generated Dec 01 08 12:45 in 0.193 secs.)

Contact Us / About ://URLFAN / Notify me when my site is added or updated. / Add my RSS feed to ://URLFAN