Example 22.5 Flintstones2 Example
Controller Name = RandomImage, View Name = display
Controller Source Code
display.html.erb
Randomly display one of the four flintstones characters and the
corresponding name on an ERB view, obtaining information from
the characters table in the database. Create a model with this
command line statement:
rails g model Character char_id:integer name:string \
age:integer image_name:string