From 8a6ecb2c21a0e01d2a5cb38733d54c5c7616a167 Mon Sep 17 00:00:00 2001 From: Brian DeRocher Date: Wed, 2 Nov 2022 10:18:27 -0400 Subject: [PATCH] Rails/ActionOrder --- app/controllers/community_links_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/community_links_controller.rb b/app/controllers/community_links_controller.rb index 754c02c9cd..0c34bbef0c 100644 --- a/app/controllers/community_links_controller.rb +++ b/app/controllers/community_links_controller.rb @@ -12,8 +12,6 @@ def index @links = @community.community_links end - def edit; end - def new @community = Community.friendly.find(params[:community_id]) @title = t "community_links.new.title" @@ -21,6 +19,8 @@ def new @link.community_id = params[:community_id] end + def edit; end + def create @community = Community.friendly.find(params[:community_id]) @link = @community.community_links.build(link_params)