0
I’m starting with Rails, and I’m not able to link to delete a "post" from the site.
Follows how the links are new
and edit
p.btn = link_to "Editar informações", edit_property_path(@property) if current_user == @property.user
p.btn = link_to "Editar imagens", new_property_media_content_path(@property) if current_user == @property.user
p.btn = link_to "Excluir
", property_path(@property) if current_user == @property.user, :confirm => 'Are you sure?', :method => :delete
Shows the error:
syntax error, Unexpected ',', expecting ')'
Good Morning! You could show the entire code of your index.html.slim
– lgustavocaciatori