Hi everyone, be forewarned that I''m new to ruby and rails. I''ve got two models Course and Lesson. Course has_many :lessons and Lesson belongs_to :course. Currently the models themselves just have attr_accessible with the :name and :description fields. When I try to load the form to create a new lesson (url is localhost:3000/courses/(course_id)/lessons/new<http://localhost:3000/courses/5/lessons/new>), I get an error which says: undefined method `lessons_path'' and it points to line 1 of the form partial for making new lessons. I''ve tried searching on the net for a couple days now and have tried several different things, but I can''t figure it out. Here''s the code: *lessons_controller.rb (relevant methods only)* * def new @course = Course.find(params[:course_id]) @lesson = @course.lessons.new end def create @course = Course.find(params[:course_id]) @lesson = @course.lessons.create(params[:lesson]) if @lesson.save redirect_to course_path(@course), :notice => "Successfully created lesson." else render :action => ''new'', :error => "Something went wrong." end end * * * *_form.html.erb* *<%= form_for(@lesson) do |f| %> <%= f.error_messages %> <p> <%= f.label :name %><br /> <%= f.text_field :name %> <br /> <div class="field"> <%= f.label :description %><br /> <%= f.text_area :description %> </div> </p> <div class="actions"> <%= f.submit "Submit" %> </div> <% end %>* * * *routes.rb* * resources :courses do member do get ''detail'' end resources :lessons end * -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MS7lgN0O4DoJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.