lib/controller.rb
def details(input)
    job = Job.find_by_id(input.to_i)
    if job
      puts "\n\n" + job.description
      puts menu
    else
      puts "Out of range. Please input a number between 1 and #{Job.count}"
    end
  end
# show details about a specific job posting
show details about a specific job posting
show details about a specific job posting
def details(input)
    job = Job.find_by_id(input.to_i)
    if job
      puts "\n\n" + job.description
      puts menu
    else
      puts "Out of range. Please input a number between 1 and #{Job.count}"
    end
  end
def details ( input ) job = Job . find_by_id ( input . to_i ) if job puts "\n\n" + job . description puts menu else puts "Out of range. Please input a number between 1 and #{Job.count}" end end
show details about a specific job posting
show details about a specific job posting
input