Skip to content

Commit

Permalink
Rails/ActionOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
openbrian committed Jan 14, 2023
1 parent 2d0deb6 commit 8a6ecb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/community_links_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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"
@link = CommunityLink.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)
Expand Down

0 comments on commit 8a6ecb2

Please sign in to comment.