I have just a little problem. I want to save an object back to my
if I do itlike that:
e = Event.new(params)
e.id returns the correct id of the created db entry
however if I do it like that.
e = Event.new(params).save!
e is just true (which is correct, but I hoped I’ll get back the object)
Can you tell, I am still not very familiar with Ruby :-/
How can I do this in one line?
Thanks for a hint