DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
rails check if object is new
item = Item.new item.new_record? #=> true
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#rails
#check
#object
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit