##// END OF EJS Templates
rename .rhtml to .html.erb of app/views/messages/new.rhtml....
rename .rhtml to .html.erb of app/views/messages/new.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6594 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3226:9044305b9335
r6474:392d66713de8
Show More
news_exemplar.rb
16 lines | 373 B | text/x-ruby | RubyLexer
class News < ActiveRecord::Base
generator_for :title, :method => :next_title
generator_for :description, :method => :next_description
def self.next_title
@last_title ||= 'A New Item'
@last_title.succ!
@last_title
end
def self.next_description
@last_description ||= 'Some content here'
@last_description.succ!
@last_description
end
end