I got this working be defining a new self.find in my Project model. Because
my slugs are A-Z only I can rely on to_i to give me 0. So initially I did:
def self.find(input)
input.to_i == 0 ? find_by_slug(input) : super
end
But when I try to edit a Project it failed because it was including an
extra, empty {}. Not sure why it does that. But I finally got it
straightened out by doing this:
def self.find(*input)
input[0].to_i == 0 ? find_by_slug(input[0]) : super
end
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.