Forums » Development »
Update a attribute inside the Database
Added by Luis Serrano Aranda over 12 years ago
I want to update a atribute inside the table issues
I write this code (to udate only the with the id 121)
issue = Issue.find(121)
issue.update_attribute(:status_id, 6)
And Redmine returns stack level to deep
I have also tested
issue = Issue.find(:last, :conditions => { :id => 121 } )
issue.update_attribute(:status_id, 6)
and has been the same,
Could you help me ?
Thanks in advance
Replies (3)
RE: Update a attribute inside the Database - Added by Luis Serrano Aranda over 12 years ago
Could you help me please?
RE: Update a attribute inside the Database - Added by Etienne Massip over 12 years ago
issue.status = IssueStatus.find(6)
?