25 Mar '13, 9pm

ASCIIcast 409 - Active Model Serializers

The Active Model Serializer will automatically pick this up and if we move this up into the ApplicationController it’s included in all the controllers. We want to keep the route node, so we won’t add this method to our app. Instead, we’ll go back to our serializer class to see how we can further customize the output. Let’s say that we want to add attributes that aren’t methods defined on the model, such as the article’s URL. We can define a method in the serializer and it will use this instead of delegating to the model. We have access to the URL helper methods here so we can use article_url to get the article’s URL. We pass this object which represents the model that the serializer is focussed on.

Full article: http://railscasts.com/episodes/409-active-model-serialize...

Tweets

15:06: NEW: Active fire (See for details)

winnipegtransit.com 24 Mar '13, 8pm

Service Advisory Active fire As of 15:03, route 85 is under the effect of a detour. This detour affects the following stop...

16:40: ENDED: Active fire (See for details)

winnipegtransit.com 24 Mar '13, 9pm

Service Advisory Active fire As of 16:34, route 85 is under the effect of a detour. This detour affects the following stop...

Parents: Reasons to Keep Kids Active

runnersworld.com 25 Mar '13, 8pm

Kids who play soccer, swing on the monkey bars or get other forms of exercise not only lower their risk of childhood obesi...

Hey, parents: Two new studies show active kids ...

runnersworld.com 25 Mar '13, 10pm

Kids who play soccer, swing on the monkey bars or get other forms of exercise not only lower their risk of childhood obesi...

Will Tesla Model S Be America’s Best-Selling Pl...

hybridcars.com 25 Mar '13, 2pm

If you’ve watched the sales numbers the past couple months, it’s believed Tesla has been finishing a close second place to...

~HFC19 @SmartOUCHDEV Help needed to identify the Rolex Model whose pics are attached!!!: Hi, I was h... #ROLEX

~HFC19 @SmartOUCHDEV Help needed to identify th...

timekeeperforum.com 25 Mar '13, 7pm

Help needed to identify the Rolex Model whose pics are attached!!! This is a discussion on Help needed to identify the Rol...

How To Drive On Ice, Tesla Model S-Style

greencarreports.com 26 Mar '13, 12pm

It isn't covered in great detail, but rear-wheel drive is a factor. Traditionally, front-engined, rear-drive cars aren't a...

Singapore's dengue fever epidemic set to worsen with 3 strains active; experts fear outbreak worse than 2005

Singapore's dengue fever epidemic set to worsen...

straitstimes.com 27 Mar '13, 12am

SINGAPORE'S dengue fever epidemic has entered its 12th week and is looking serious. There are three strains of the virus t...