Rails - continuing to work on check_box_tag
问题 Continuing my project on themoviedb api, here is now what I have. I added a method to pass the attributes of the query. My method is: def tmdb_search params.require(:tmdb_ids).permit(:id, :title, :release_date) end I pass this to: def create_from_tmdb(tmdb_search) tmdb_search = params[:tmdb_ids] @movie = Tmdb::Movie.find(tmdb_search) end I proceed then in adding the movie to my db: def add_tmdb(create_from_tmdb) create_from_tmdb = (params[:tmdb_ids]) @movie = Movie.new(create_from_tmdb)