On 10 April 2014 08:48, Alfredo Barrero <[email protected]> wrote: > Yeah sorry when I copy the text I didn't select the @. But with that the > issue stil there...
You should *always* copy/paste code when asking questions, otherwise it just causes others to waste their time. > > If I use > > <% @photo.each do |photo| %> That should be @photos not @photo, or are you retyping rather than copy/paste again? If you have used @photos in the view then first check development.log where you should see the sql query being performed to pick up the photos. If that looks ok then you can put some diagnostic code in the controller after setting up @photos to check whether it is setup ok. If you use puts in the controller it will appear in the server terminal window. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtzukXU8K3O3iPhou8y50xqpcQwovJR_7H9x7cHWUGWdw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

