stcrasher/games-editor — comment on commit 5c4ab79fe5599638143315c919d7f03372f48433
File: app/controllers/ideas_controller.rb line 43
By stcrasher:

begin
@idea = current_user.ideas.create!(params[:idea].update(:user_id => current_user.id, :game => @game))
rescue RecordInvalid
#not valid
end

if @idea.new_record?
unless @idea.errors.empty?