I’ve created a new action in the recipes_controller class called
some_action and a corresponding view for it in the /views/recipes/
folder.
However, when I go to the localhost:3000/recipes/some_action url i get
“NoMethodError in Recipes#show” and under the parameters it says
{“id”=>“some_action”}. So for some reason ruby treats some_action as a
variable for the show method? How do I get it to treat some_action as a
valid action?
I’m sure there is something very obvious I’m missing here.
any ideas?