For some unknown reason my code snippet above didn't show the key line
correctly. The important line is the next to last line in the snippet
below:
>
> @simulation = Simulation.new(sim_hash)
> @simulation.user_id = current_user.id
> @simulation.save! #need to save to get the id from the dat
There are actually 3 parts to this question. I have found a solution
to each.
The first part is how to create a new simulation given the data for a
simulation, server, load and buffer. I resolved this in my
simulations_controller#create method. The trick linking up the newly
created entities (
2 matches
Mail list logo