I'm getting undefined method error:
undefined method `challenges_path'
I thought I had my form correct, _form.haml
= simple_form_for [@skit, @challenge], html: { class: "form-horizontal" } do |f|
The link to the form above:
= link_to 'Submit', new_skit_challenge_path(params[:skit_id]), class: "btn btn-default"
This is my routes
resources :skits do
resources :challenges
end
This is my challenge_controller.rb
def new
@challenge = Challenge.new
end
What am I doing wrong? What else information do you need that can help debug this issue?