I have a model, "recipe". Here's the model;
https://github.com/mikeyhogarth/Nomelette/blob/master/app/models/recipe.rb
I am able to use dynamic finders to write code like this;
Recipe.find_all_by_name "spaghetti bolognaise"
but the following gives me a "NoMethodError"
Recipe.find_all_by_category 1
As you can see from the model I've had to revert to creating my own finder method for this functionality. Am I just missing something with the syntax or will dynamic finders only work on properties that are columns specific to a given model (not associations)?