In rails, I know it is best to do a find through scope
e.g in questions_controller
def index
@event = Event.find(params[event_id])
@question = @event.questions
end
but is it also good practice to then do the same in the show action
def show
@event = Event.find(params[:event_id])
@question = @event.questions.find(params[:id])
end
or better to just do a find straight on the Question model without scoping it through the event?
I am curious about that and also doing a similar thing with @question.comments.build vs Comment.new when making a new record without creating a question record at the same time.
thanks