If I am on a view, how can I access the ID of the ruby object that is currently represented by that view?
E.g. If I am on blah.com/jobs/1 how do I get 1?
I thought about trimming the current URL but that seems way too brittle, especially given I have nested resources. The only other easy way I can think of is to have a hidden field but it seems silly to have a hidden input on a show page where there aren't any forms.