I have to create a DropDown depending on the data of a table in my database, I have a line of code that I think I can do it but I have an error Undefined method
of event_id_select
where I can declare it or how I can resove it , I'm new by programming in Ruby on rails.
<%= f.collection_select(:event_id_select, Event.all, :id, :name) %>