Undefined method _s_path in form_for
问题 I know there are a bunch of questions on this. I've looked around, but I don't seem to be making the mistakes I've found answers to. The form for my workout resource, nested under users, is giving the error undefined method `workouts_path' for #<#<Class:0x007f88939c9e60>:0x007f8891527b20> That form goes: = form_for @workout do |f| ... = f.submit The Workouts Controller new action (where the error's being produced): def new @user = User.find(params[:user_id]) @workout = @user.workouts.new end