Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MainController < Controller
- # the index action is called automatically when no other action is specified
- def index
- @title = "Ramaze Partials with Etanni"
- # create an array of contact objects which are accessible to index.xhtml
- @contacts = [
- Contact.new("John", "Smith", "416-323-5291", "jsmith@gmail.com"),
- Contact.new("Mary", "McInnis", "905-591-3234", "mary.mcinnis@gmail.com"),
- Contact.new("Edgar", "Elis", "784-152-4467", "elisgar@gmail.com"),
- ]
- end
- end
Add Comment
Please, Sign In to add comment