Topic: Accessing Parameters
Hi,
having a bit of trouble, sure it's pretty easy, but I want to be able to access a param, and everything I try is not working
Parameters: {"commit"=>"Create", "owner_pictures"=>{"0"=>{"notes"=>"test1", "tmp_file"=>#<File:/tmp/CGI1702.31>}, "1"=>{"notes"=>"test2", "tmp_file"=>#<File:/tmp/CGI1702.33>}}
I'm trying to get a handle on [owner_pictures][0][tmp_file] and the other params, but individually, as I need to process them before they get saved to the database
I've been trying just to do the [0] based one from the above, like this
params[:owner_pictures][0]['tmp_file'].read
I've moved the [0] around and tried all sorts of combinations for a couple of days, I'm lost
Can anyone help
thanks