Hi everyone! Is it ok to use something like `movie = Movie.where(tmdb_code: params[:tmdb_code]).first_or_create!(title: params[:title])`, or it's more idiomatic to use the `create_with` method?
Here it is: https://github.com/sekmo/movienight/blob/master/app/controllers/wishes_controller.rb
Hi! I'm writing an authentication spec. It would be a feature spec or a controller spec? (I just have the "before_action :authenticate_user!" devise helper on application_controller.rb)
That's ok.. but the js will get executed anyway... Do you mean to move the js from application.js to elsewhere?