A little new to Rails here so really appreciate all the help!
I have a form where I get the user to input 2 date fields. I want to calculate the number of days between these 2 dates. How would I go about doing this? Do I create a new method in the controller to calculate this?
Also, after I calculate this number, I want to display a new form x number of times (x = the calculated number of days). Any direction on how to do this would be great! Thanks in advance!