Sha256: 6f6b75ab88d959fd1049ec8399def0c0d859a9f57de7e9586f2546577f288158
Contents?: true
Size: 863 Bytes
Versions: 3
Compression:
Stored size: 863 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception protected def set_menu @menu = { starters: [{ name: 'Fried Prawns', description: 'yes prawns' }, { name: 'Gammon Steak', description: 'its gammon, its steak' }, { name: 'Garlic Mushrooms', description: 'garlicy' } ], mains: [{ name: 'Roast Pork', description: 'Its roasted' }, { name: 'Roast Beef', description: 'Beef!' }, { name: 'Roast Chicken', description: 'The other other roast' }, { name: 'chicken_tikka', description: 'its still chicken', notes: [{ ingredients: 'with naan' }] } ] } end end
Version data entries
3 entries across 3 versions & 1 rubygems