Ruby on Rails Friday, June 29, 2018

On 28 June 2018 at 21:51, Julian Medina <julian.l.medina@gmail.com> wrote:
> This is an interesting approach. Thanks! Would I essentially just duplicate my current controller but add a loop within the volume controller so that records are created based on the number of individuals getting certified? I am assuming I'd need two separate views as well.

Obviously you need a view to show your form. You shouldn't have to
duplicate any actions from the current controller as presumably this
controller will only have the one action in it - showing the form,
adding the records, and handling any errors.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtoJPcssx4bH1VDDDb6uydBjQ6NS6SYA38G9aW2KamtSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment