Example:
User A (id=10) has created a photo resource
photo: (id: 1 user_id = 10, url: \"http://...\")
The simplest would be to to modify routes.rb.
Assign photos to live in the current_user path.
For example,
devise_for :users resources 'users' do resources 'photos' end