[Screencast] Real Thin Restful Controllers with Inherited Resources
Posted on September 01, 2009
Update 10/01: José just released version 0.9.1 while I was uploading the video :-)
José Valim is doing a great work in the soon to the released Rails 3.0. He surprised everybody with his Google Summer of Code project, rewriting the entire Generator code to use Thor and be more agnostic. Not only that he enhanced the ActionController with ways to make it leaner and cleaner.
Much of this later work comes from an old Rails gem of his called Inherited Resources. It can be used right now in your Rails 2.3 projects and he just backported some of the Rails 3.0 features such as ActionController Responders and other goodies.
In essence it feels a lot like James Golick resource_controller or Hampton Caitlin’s make_resourceful, Yet Another Thin Controller Plugin if you like. But José’s is definitely interesting.
So, I decided to make a screencast showcasing some of its basic features. Bear in mind that this gem offers a lot more and I highly encourage you to read his Wiki page about it. There are dozens of options that you can leverage to make your projects even more maintainable and lean.
Para utilizar os códigos que eu menciono no screencast, apenas comece assim:
1 2 |
git clone git://github.com/akitaonrails/ryanb-15min-blog.git cd ryanb-15min-blog |
This video is divided in two parts, the first is a simple conversion to use inherited_resources. To access this code do like this:
1 |
git checkout -b inherited_resources --track origin/inherited_resources |
This will bring the branch with the first part. To see the second part, with more goodies, do like this:
1 |
git checkout -b inherited_resources_complete --track origin/inherited_resources_complete |
Now you should have 3 branches: master with the original 15 min. blog, ‘inherited_resources’ with the first part and ‘inherited_resources_complete’ with the second part. Use the ‘git checkout [name of the branch]’ to switch back and forth between branches.
José is also a speaker for Rails Summit Latin America 2009, the largest Rails conference in South America, and it’s gonna happen on October 13th and 14th, at São Paulo, Brazil. Help us promote it and be sure to attend! :-)
blog comments powered by Disqus
Archives
- February 12(2)
- December 11(1)
- November 11(4)
- October 11(6)
- September 11(5)
- August 11(1)
- July 11(5)
- May 11(4)
- April 11(11)
- March 11(4)
- February 11(3)
- January 11(4)
- December 10(9)
- November 10(2)
- October 10(10)
- September 10(4)
- August 10(6)
- July 10(14)
- June 10(16)
- May 10(8)
- April 10(14)
- March 10(9)
- February 10(6)
- January 10(14)
- December 09(10)
- November 09(10)
- October 09(7)
- September 09(19)
- August 09(4)
- July 09(12)
- June 09(7)
- May 09(12)
- April 09(11)
- March 09(9)
- February 09(9)
- January 09(12)
- December 08(14)
- November 08(20)
- October 08(15)
- September 08(18)
- August 08(25)
- July 08(13)
- June 08(21)
- May 08(29)
- April 08(27)
- March 08(12)
- February 08(32)
- January 08(31)
- December 07(27)
- November 07(30)
- October 07(25)
- September 07(28)
- August 07(16)
- July 07(15)
- June 07(16)
- May 07(7)
- April 07(13)
- March 07(8)
- February 07(9)
- January 07(24)
- December 06(17)
- November 06(17)
- October 06(15)
- September 06(38)





