In the afternoon, we were introduced to Sinatra, and put together a simple message-posting app. The lecture clarified how Sinatra builds on the standard Rack framework to let you create simple websites quickly and easily.
Fun note: I found an even better way today of doing my person object. It already exists in Ruby! It's called an OpenStruct, and it's really cool. Here's the code:
require 'ostruct'
person = OpenStruct.new
And you're done! The documentation is online at http://www.ruby-doc.org/stdlib/libdoc/ostruct/rdoc/OpenStruct.html
Skills developed: ActiveRecord associations, Sinatra
Skills developed: ActiveRecord associations, Sinatra
No comments:
Post a Comment