<commit_before>class AdventCalendarItemsController < ApplicationController
	def new
		@advent_calendar_item = AdventCalendarItem.new(date: params[:date])
	end

	def create
		AdventCalendarItem.create(advent_calendar_item_params)
		redirect_to welcome_index_path
	end

	private 
	def advent_calendar_item_params
		params.require(:advent_calendar_item).permit(:user_name, :comment, :date)
	end
end<commit_msg>Fix redirect pass after AdventCalendarItem created<commit_after>class AdventCalendarItemsController < ApplicationController
	def new
		@advent_calendar_item = AdventCalendarItem.new(date: params[:date])
	end

	def create
		advent_calendar_item = AdventCalendarItem.create(advent_calendar_item_params)
		redirect_to new_item_path advent_calendar_item_id: advent_calendar_item.id
	end

	private 
	def advent_calendar_item_params
		params.require(:advent_calendar_item).permit(:user_name, :comment, :date)
	end
end
{'fraction_non_alphanumeric': 0.06427015250544663, 'fraction_numerical': 0.0, 'mean_word_length': 7.922330097087379, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4435386', 'n_tokens_mistral': 291, 'n_tokens_neox': 276, 'n_words': 53}