def new
@recipe = current_user.recipes.build
@categories = Category.all.map{ |c| [c.name, c.id] } <-- saying this lines wrong
end
def create
@categories = Category.pluck(:name, :id)
uninitialized constant RecipesController::Category
Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.