W5D3 - RailsLite Day 2
Topics
Rails / Web Application Framework
Active Record
Flash
Exceptions
Rendering text via a file & filepath
Rendering an image via a filepath
Rack::Request & Rack::Response
response.backtrace
Projects
Rails Lite
Flash error handling
Exception handling
Static image handling
CSRF - authentication handling
Finished ActiveRecordLite
Solo Day
Learnings
dir_path = File::dirname(__FILE__) - handy way to pull the current directory path
Mime Types
MIME_TYPES = { '.txt' => 'text/plain', '.jpg' => 'image/jpeg', '.zip' => 'application/zip', '.png' => 'image/png' }
Solo programming's more fun when you have a buddy to solo program with (shout out to Justin Anderson)!








