I couldn't find code quite like this in HAL or collection+json so I don't know, but it seems you might have got rel and hrefswapped in the job serializer:
def links
list = []
list << {:href => "self", :rel => job_path(self)} if persisted?
list << {:href => jobs_path, :rel => "index"}
list
end
I couldn't find code quite like this in HAL or collection+json so I don't know, but it seems you might have got
rel
andhref
swapped in the job serializer:Should it be
:rel => "self"
?