Sinatra-ActiveRecord-Homework
- Create a modular Sinatra Application (should have application controller)
- Create a migrations.sql file in your db folder
- What does that file represent?
- Create a table that has five columns
- Paste your your migrations file into sql
- Create a model that is named after your tablename which is singular (ex. 'users' => ClassName = User
- Create a controller that allows you to do crud operations on your data, using your model.
- Populate your database with at least ten entries
- Create a view that renders all of your database entries (retrieve this data via ajax) Create all the markup via Javascript, your html page should be blank except for your links.
- Create another view that renders all of your database entries using The sinatra erb variables (Check the gitbook, erb in depth for example)
- Create a gulp file and do some styling in less.
- Incorporate either Materialize, Bootstrap, or skeleton into the app and start with a mobile design
- Figure out how to incorporate sessions have, you looked at the docs yet? Please do! They are really good! READING DOCUMENTATION is SUPER important, the more you do it the easier it will become, the better you get at reading the docs, the faster you can figure out problems, which allow you to build things faster! Everything is an Object!!!!!!!!! What the hell does that mean? All objects have what? What does that mean, are they just values, what can perform actions?