class TrailsController < ApplicationController

  def index
    @mountain = Mountain.find(params[:mountain_id])
    @trails = @mountain.trails
    render :index
  end

  def show
    @trail = Trail.find(params[:id])
    @comments = @trail.comments
    render :show
  end

end
class TrailsController < ApplicationController

  def index
    @mountain = Mountain.find(params[:mountain_id])
    @trails = @mountain.trails
    render :index
  end

  def show
    @trail = Trail.find(params[:id])
    @comments = @trail.comments
    @comment = Comment.new
    render :show
  end

end
Create new comment for comment form
Create new comment for comment form
