@steveklabnik what's the cleanest way with Active Model Serializer to return different JSON based on :index, and :show?
@MikeSilvis depends on exactly what you mean. I’m assuming you’re calling render on two different things in the actions...
-
-
@MikeSilvis oh. ew. probably something like this: https://github.com/steveklabnik/get_a_job/blob/master/app/serializers/job_serializer.rb#L8 … Or just make another serializer.
End of conversation
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.