B
Bober
Hello!
I need change all values of Active Record Object
// Post - obiekt AR
@invo = Post.find(params[:id])
@a = @invo.attributes
@a.each { |m, n|
@invo.m = "new_value"
}
But, I see "undefined method `m=' "
what is wrong?
how can I change values?
I need change all values of Active Record Object
// Post - obiekt AR
@invo = Post.find(params[:id])
@a = @invo.attributes
@a.each { |m, n|
@invo.m = "new_value"
}
But, I see "undefined method `m=' "
what is wrong?
how can I change values?