On 10 April 2014 08:19, Alfredo Barrero <[email protected]> wrote:
> Ok yeah get it.
>
> Another issue that I have had is the following:
>
> In the users/show.html.erb I'm using the following lines:
>
>   <% @photos.each do |product| %>
>
>                       <%= @photo.user_id %>
>
>                   <% end %>
>
> In the user controller I have declare this : photos = Photo.order(:title),

That should be @photos.

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%3D0gLsHhpeht3Cq-5P%2B9h%3D4Q-Auq1nH7Y%3DBvZAfVKhhq97DLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to