steveklabnik / get_a_job

A hypermedia job queue
20 stars 2 forks source link

rel and href #2

Open benatkin opened 12 years ago

benatkin commented 12 years ago

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 href swapped in the job serializer:

def links
  list = []
  list << {:href => "self", :rel => job_path(self)} if persisted?
  list << {:href => jobs_path, :rel => "index"}
  list
end

Should it be :rel => "self"?

steveklabnik commented 12 years ago

Yep, just a basic screw-up.