I hope this makes sense. I am quite new to Rails, but have got my test
app working where the ‘input’ to a model Create or update is an XML
string. This XML only contains data relevant for the model, it is not a
The data magically appears in the params variable.
So if the xml looks like:
This data will be in
The slight annoyance is accessing id for the model so I do
params[:id] = params[:product][:id]
This works for me and I use it to do updates, and create. If there is a
better way, I’d like to know?
I don’t know if this is what you are looking for.