Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## in debugger
- (rdb:6) test = Content.find(1229)
- #<Content id: 1229, data: "[comment_remove_button]">
- (rdb:6) test.data.gsub!("[comment_remove_button]", "test")
- "test"
- (rdb:6) test.reload
- #<Content id: 1229, data: "test">
- ## in console
- >> test = Content.find(1229)
- => #<Content id: 1229, data: "[comment_remove_button]">
- >> test.data.gsub!("[comment_remove_button]", "test")
- => "test"
- >> test.reload
- => #<Content id: 1229, data: "[comment_remove_button]">
- >>
Add Comment
Please, Sign In to add comment