I'm getting an error: NoMethodError (undefined method `find_versions_by_componentid' for "3.1.7.1":String): when calling Version.find_versions_by_componentid(id)
And in the version model I have: def self.find_versions_by_componentid(search_id) doing: @result = Version.find_versions_by_componentid(14) works from the console but doing http://localhost:3000/version/getversionsviacomponent?id=14 from the browser doesn't. And I get the above mentioned error. Any idea? And what is this "3.1.7.1" number? I haven't a clue where that came from....

