I'm working on a Job Posting website project for school. Basically, me and my team are trying to get it so that new jobs that employers post have to be approved by the website's administrator before showing up on the index page (where the list of jobs are). When the administrator clicks on the new job request, it goes to a page where there's a bunch of details about the job, and at the bottom of the page there's two radio buttons, labeled "yes" or "no" for accepting the job request:
<p> <strong>Accept Job?</strong> <p> <%= f.radio_button :accept, true %><%= f.label :yes %><br /> <%= f.radio_button :accept, false %><%= f.label :no %> <p> <strong>Reason for Rejecting:</strong><br> <%= f.text_area :reject_description %> </p>
However, I only want the "Reason for Rejecting" and the text_area to show if the "no" radio button is selected. How do I do that?