Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
heatherathebyne committed Nov 9, 2024
1 parent 9819730 commit 795113d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/crafters_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def projects

def all_projects
@projects = User.find_by(id: params[:id]).projects
render html: @projects.map {|p| "<a href='/projects/#{p.id}'>#{p.id}</a>"}.to_s.html_safe
output = @projects.map {|p| "<a href='/projects/#{p.id}'>#{p.id}</a>"}.to_s
output << "<a href='/crafters/#{params[:id]}/projects'>all</a>"
render html: output.html_safe
end

def autocomplete_project_name_for_current_user
Expand Down

0 comments on commit 795113d

Please sign in to comment.