K
Kaspir Ghost
I'm developing a photo album app that has albums, with pictures
displayed inside of the albums. When you click on the photo, it goes to
the photo's url. What I would like it to do, is go to "picture.html.erb"
in "views/albums" so I can style it, and add "Next" and "Previous"
links.
This is the last thing I have to do to the album then I'm done, so it
figures I would run into a problem with this. I tried linking straight
to "picture.html.erb" and it brings error:
No route matches "/albums/picture.html.erb" with {:method=>:get}
I'm not sure what to do about this. Also, I've no idea in what direction
to go when creating the preivous and next links for the pictures. Could
somebody please give me a push in the right direction or a link to a
tutorial?
Many thanks in advance!
displayed inside of the albums. When you click on the photo, it goes to
the photo's url. What I would like it to do, is go to "picture.html.erb"
in "views/albums" so I can style it, and add "Next" and "Previous"
links.
This is the last thing I have to do to the album then I'm done, so it
figures I would run into a problem with this. I tried linking straight
to "picture.html.erb" and it brings error:
No route matches "/albums/picture.html.erb" with {:method=>:get}
I'm not sure what to do about this. Also, I've no idea in what direction
to go when creating the preivous and next links for the pictures. Could
somebody please give me a push in the right direction or a link to a
tutorial?
Many thanks in advance!