Good morning everyone, I have a question, if anyone can answer it would be great. I'm trying to send the user.id from the "users/show.html.erb" to "photos_controller.rb", but I'm not sure how to do it. I can send the user information to the Model but I'm not sure is that is correct. Below is the code that I'm using: *"users/show.html.erb" -->* <%= link_to 'Add Photo', :method => Photo.add(@user) %> *"photo.rb" --> * def self.add (name) puts 'Adding photo' print name.name end Thi other thing that I'm trying is the next one. Could you tell me if it is correct? *"users/show.html.erb" --> * <%= link_to 'Add Photo', new_photo_path, :id => @user.id %> Thanks & Best regards Alfred -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b6ffe45d-de31-47d2-8609-f3c08eaa15ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.