07 Aug '12, 6am

Building a fast, lightweight REST service with Rails 3

I recently started building a Rails 3 app that will function as an internal REST service. I wanted it to be as lightweight and fast as possible, both to test and to run. Here are a few ways I configured the app to be a bit faster: Defined a limited route set Removed ActiveResource Removed unnecessary middleware Created a custom controller that inherits from Metal First, I defined the public api for my app in the routes file. I chose not to use resources because I don't need named routes I wanted the :id parameter for the show action to be named :account_id instead of id (a pet peeve of mine with Rails routing) I only needed 3 of the routes generated by resources The routes file ended up looking like this: scope "/api/v1" do scope "/accounts" do post "/" => "accounts#create" get ":account_id" => "accounts#show" get ":account_id/transactions" => "accounts#transactions" put "...

Full article: http://pivotallabs.com/users/jdean/blog/articles/1419-bui...

Tweets

@krainboltgreene @viatropos in rails

api.rubyonrails.org 09 Aug '12, 3am

On shared hosts, Apache sometimes doesn’t pass authentication headers to FCGI instances. If your environment matches this ...

This gem provides Lungo.js for your Rails 3 app...

rubygems.org 08 Aug '12, 8am

This gem provides Lungo.js for your Rails 3 application.

Working With Rails:

Working With Rails:

workingwithrails.com 07 Aug '12, 9am

Unable to activate the account. Please check or enter manually. Activation Code Job Board Reach the world's largest dedica...

What’s New in Edge Rails #32: Week of July 30 –...

afreshcup.com 06 Aug '12, 12pm

Monday, August 6, 2012 at 6:54AM Week of July 30 - August 5, 2012 The most sweeping change this week was actually on the 3...

SERVICE 77

buses.co.uk 12 Aug '12, 5am

Only one open top bus will operate today on service 77, the other will be a closed top bus. This is due to one of the open...

ohmann <3

purchaze.com 18 Aug '12, 1pm

“If you wish to test out some code without chan...

guides.rubyonrails.org 11 Aug '12, 6am

$ rails generate scaffold HighScore game:string score:integer exists app/models/ exists app/controllers/ exists app/helper...

Have you heard about our new Green Building Series of masterclasses? They will cover the whole building lifecycle:

Have you heard about our new Green Building Ser...

ukgbc.org 07 Aug '12, 4pm

Until now, sustainability has often been viewed in isolation at each stage of the building lifecycle, rather than througho...

GM Ventures invests in new lightweight NanoSteel

GM Ventures invests in new lightweight NanoSteel

green.autoblog.com 08 Aug '12, 2pm

PROVIDENCE, R.I. - The NanoSteel® Company, a leader in nano-structured steel materials design, today announced that Genera...

Service 22 diversion are now on normal route

buses.co.uk 19 Aug '12, 5pm

Services Our Services Live Bus Times Popular Destinations Places Served Network Maps Additional Information Useful Links a...

How to install and configure Ruby on Rails with...

ruby-forum.com 06 Aug '12, 3am

Hi All, I decided to write some blog entries on my pet project for running Ruby 1.9.2 and Ruby on Rails 3.0.5 on Windows S...

BACKORDERS FOR YOUR FAVOURITE PIECES>>NOW OPEN! <3

BACKORDERS FOR YOUR FAVOURITE PIECES>>NOW OPEN! <3

PLS NOTE THAT APPROX TIME OF ARRIVAL FOR ALL BACKORDERS IS SUBJECTED TO CHANGES IN THE EVENT OF UNEXPECTED DELAYS IN PRODU...

Routes 206 and 851 - service disruption (Effect...

transperth.wa.gov.au 10 Aug '12, 2am

Routes 206 and 851 - service disruption Effective: Sunday 12 August 2012 from first service until 12.00pm From first servi...

Air Jordan 3 ‘Threezy’ Custom

Air Jordan 3 ‘Threezy’ Custom

styleengine.com 07 Aug '12, 3am

as inspiration to create his own Air Jordan 3 “Threezy” Custom. This is definitely a clean and completely true to the orig...