We'd recommend the following books are read in alignment with the respective module content, however, this list provides an overview of the BDes (Hons) Interaction Design course reading list, broken down by year.
##Year 1
# migration | |
t.integer :sequence | |
# controller action | |
# and the way we've done the method, it's probably logical to put the action in test_scenarios_controller | |
def sequence | |
TestScenario.sequence=(params[:sequence]) | |
render :json => { :status => :ok } | |
end |
# This controller returns static pages | |
class PagesController < ApplicationController | |
end | |
# routes.rb | |
get "help", to: "pages#help" | |
get "about", to: "pages#about" | |
get "privacy", to: "pages#privacy" | |
# ApplicationController: |
# in AttachmentsHelper: | |
def safe_attachment_path(attachment, size=nil) | |
retrieve_attachment_path(attachment.id, attachment.original_name, :size => size) | |
end | |
# and then have a route | |
match '/files/:id/:filename' => 'attachments#retrieve', :as => :retrieve_attachment | |
# and a controller action | |
def retrieve |
# instead of debugger, you could use byebug gem | |
# and then you do not need to require debugger | |
group :development, :test do | |
gem 'minitest' | |
gem 'awesome_print' | |
gem 'capybara' | |
gem 'database_cleaner', '~> 1.0' | |
gem 'debugger' | |
gem 'factory_girl_rails' | |
gem 'hirb' |
# =================================================================================================================== | |
# Template for generating a no-frills Rails application with support for Elasticsearch full-text search via Tire | |
# =================================================================================================================== | |
# | |
# This file creates a basic, fully working Rails application with support for Elasticsearch full-text search | |
# via the Tire gem [http://github.com/karmi/tire]. | |
# | |
# You DON'T NEED ELASTICSEARCH INSTALLED, it is installed and launched automatically by this script. | |
# | |
# Requirements |
# /lib/tasks/minitest.rake | |
require "rake/testtask" | |
Rake::TestTask.new(:test => "db:test:prepare") do |t| | |
t.libs << "test" | |
t.pattern = "test/**/*_test.rb" | |
end | |
task :default => :test |
ENV['RAILS_ENV'] = 'test' | |
require File.expand_path('../dummy/config/environment.rb', __FILE__) | |
require 'rails/test_help' | |
require 'minitest/autorun' | |
require 'minitest/spec' | |
require 'minitest/mock' | |
require 'capybara/rails' | |
require 'valid_attribute' | |
require 'debugger' |
# Shakshuka by Gilboa: | |
- Chopped onion | |
- Chopped red capcisum | |
- Chopped tomatoes | |
Fry for a few minutes till soft. Then add: | |
- Tomato paste in garlic or chilli flavour | |
- Crushed garlic | |
- a bit of salt, pepper and sweet paprika | |
Then add the eggs, with either chopped parsley or chopped coriander. |
# Friday run sheet for Sydney workshop | |
-------------------------------------------------- | |
## 5:00 | |
Setup | |
- Eventbrite registration setup | |
- Name badges | |
- Setup projector screen | |
- Ensure wifi is working | |
- Setup sponsor banners |