Today I learned some really helpful stuff related to mass assignments when you are creating and editing an entry into the database.
Additionally, I also learned some ways to refactor my code related to link_to and form_with.
Here's the code I learned on assigning mass attributes.
movie_attributes = params.require(:movie).permit(:title, :description, :id)
Top comments (0)