undefined method `parameterize' for nil:NilClass
- by Senthil
I've been trying to do SEO friendly urls, and managed to get it work, but when I call index action on blogs, I get a weird "undefined method `parameterize' for nil:NilClass." The method works when using show method.
def to_s
title
end
def to_param
"#{id}-#{to_s.parameterize}"
end