Resources for the TIY-Durham Rails course.
Students should be comfortable with the following at the end of this week:
Challenge: Include
Problem of the Day: My First Website
theironyard.comh1 - h6padivspanul, li, oltable, etcimagehrefsrcstyle= attributes - thumbs down.<style> tags - thumbs mostly down.id and class attributesli {} to select everything in all lisdiv li {} to select every li inside a divli, p {} to select everything in all lis and ps#id to select the element with an id of “id”.class to select everything with a class of “class”li.class to select every li with a class of “class”border:width:color:box-shadowtransformWebsites that are “static”:
Webapps that do processing on the server (and/or have a database):
Helpful Links:
Challenge: Discuss Ruby
Challenge: Discuss HTTP
Problem of the Day: Using ERB
#shipit and putting a bow on itrails new .forminput (all sorts)selectbuttoncheckboxform_tag elements<%= f.select :teacher_id, Teacher.all.map {|t| [t.name , t.id]} %><%= f.collection_select :teacher_id, Teacher.all, :id, :name %>strftime()strftime()Problem of the Day: Albums Resource
before_action (similar to before_create)ApplicationControllerrails-footnotes gemjbuilder from Gemfile if you don’t want an API.form_for and related methodsrails generate rails_footnotes:installChallenge: Router
||=config.action_controller.action_on_unpermitted_parameters = :raise.html_safegit remote reviewsqlite3 gem to development and testpg and rails_12factor gems to productionpuma gem to base of Gemfileweb: bundle exec puma -C config/puma.rbconfig/puma.rb per Heroku’s instructionsbundle install --without productionheroku git:remote -a damp-peak-9050git push heroku masterheroku run rake db:migrateheroku run rake db:seed