My params[:type] equals item (singular)
params[:type]
item
I need to send the user to
items_path(name: params[:name])
I need to pluralize the params[:type] part of the path and merge it with my view to get my link right, and I'm struggling to do that.
Aucun commentaire:
Enregistrer un commentaire