#83 ✓resolved

Pictures only ever report themselves as being uploaded by user_id 1

Reported by greenbuildingbrain | June 11th, 2009 @ 09:28 PM

There is no userid 1.

here's what I assumed would be the relevant section of code

from pictures_controller

    params[:picture].merge!({:user_id => current_user}) 

@picture = @item.pictures.build(params[:picture])</code>

and here is the same section from comments_controller

    params[:comment].merge!({:user_id => current_user.id})
    @comment = @item.comments.new(params[:comment])

oh, that's pretty obvious now that I mentionit


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Green Building Brain is an open source and open content tool for collaboration and resource sharing between green building professionals and amateurs.

People watching this ticket