05 Apr '14, 11pm

#409 Active Model Serializers - RailsCasts:

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

#382 Tagging - RailsCasts:

railscasts.com 05 Apr '14, 11pm

This migration creates two tables: tags and taggings . We don’t have to create models for these as they’re included with t...

As retail investors can we supplement our earne...

thefinance.sg 05 Apr '14, 8am

Jason Zweig & Jonathan Clements shares some great personal finance advice As retail investors can we supplement our earned...

What's new in edge Rails: Active Record enums

robots.thoughtbot.com 01 Apr '14, 2pm

What's new in edge Rails: Active Record enums Prem Sichanugrist April 01, 2014 rails In an Active Record model, usually yo...

Genesis1 Bitcoin ATM Goes on Active Duty in Que...

newsbtc.com 05 Apr '14, 12pm

Genesis1 Bitcoin ATM Goes on Active Duty in Quebec City Eric Calouro | April 5, 2014 | 0 Comments Bit2Bloc’s Kevin Fortier...

Rubyflow ActiveModel::Serializers - MetaCasts.t...

rubyflow.com 01 Apr '14, 2pm

ActiveModel::Serializers - MetaCasts.tv* Posted by markbates on April 01, 2014 — 0 comments In this episode we will use TD...

Had To Happen: Hacking Into A Tesla Model S Ele...

greencarreports.com 05 Apr '14, 2pm

By Antony Ingram Apr 5, 2014 Follow Antony Reddit This! Share on Facebook Share on Twitter 2014 Tesla Model S Enlarge Phot...