hi, within the show action i have somethign like this:

@address = current_user.addresses.find(params[:id])

now, lets assume we have a 'bad' user and he changes the url to another ID.
therefore he would get something like this:

ActiveRecord::RecordNotFound in AddressesController#show

Couldn't find Address with ID=6 AND (`addresses`.user_id = 15)


>> so what im asking his how u guys handle those situations.

thx

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to