On Mar 20, 2011, at 6:48 PM, Peter Booth wrote:

> I have been perusing the Rails 3 version of teh book and am unable to find an 
> answer to something:
> Is there an exposed Hobo method that I can invoke within a model, so as to 
> get a string equivalent to that 
> thats used for the readable links to Hobo model objects? ( "76-acme_inc", etc)

That's actually a standard Railsism - the method you're looking for is to_param.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to