I have one page with a button to create a new album of photos on my app like this:
<span class="file-upload">
<%= link_to '', new_album_path, class: "btn-upload trigger-file-upload"%>
</span>
My routes.rb is like this:
resources :albums do
resources :photos
end
If I click directly on my page like this, it works:
https://localhost:3000/albums/new
Why the link generated by <%= link_to '', new_album_path, class: "btn-upload trigger-file-upload"%> doesnt works? I click on it, and the page isnt redirected
Edited: My rake routes:
click on the "link_to"
. I suppose you do not mean that there is a link on the rendered page that says "link_to". – sawaroutes | grep albums
by running it on console on project directory? – Anand