Ticking in Rails

resources :reports do     resources :heros, only: [:new, :show, :edit]     resources :villains, only: [:new, :show, :edit]end
<div class="form-group row"> <%= f.label :villain, class: "col-2 col-form-label text-light" %> <div class="col-10"> <%= f.collection_select(:villain_ids, Villain.all,
:id, :villain_name,
{prompt: "Select a Villain"}, {:required => true}) %>
def report_params    params.require(:report).permit(:subject, :description,     :hero_ids, :villain_ids)end




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to add a new path to environment variables in Windows 10

Digital Goods Transaction of Actions on Google (Build Android App)

Terraform Import for “google_service_account_key”

Binary Tree Traversal- Why to Traverse with different Approaches?

Building a Laravel 8 Application: Routes and Views

Cloud Vendor Lock In Conundrum

The Difference Between an Average Developer and Genius

Garnet cabochon Red Oval gems 46 1 pc

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Austin Redmond

Austin Redmond

More from Medium

Blueprint Event Graph

What is the current health care blockchain

How to Make Instagram Private on PC/Mobile? Follow This Tutorial