My guess is (and I am new to rails myself) is that the browser is not
smart enough to send an object, it only knows how to post strings
back to you. I have never tried to send a class back and forth I
always just sent the ID and looked up that particular Customer in the
action.
If you can send back a class than this would definitely be more DRY
and I will have to go back and do some code cleanup if I am told
differently in this thread. (only been on rails for about 1.5 months
now)
Andrew
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.