- * We will follow a typical rails code development sequence.
##BDD - Behavior Driven Development #Learing Objectives:
- Understand how to make list of attributes and behaviors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/reloader' | |
require 'sqlite3' | |
db = SQLite3::Database.new('guestbook.sqlite3'); | |
sql = "select * from guestbook;" | |
sql_name = "select name from guestbook where id = 1" | |
@result = db.execute(sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spencer Eldred | |
October 4, 2013 | |
1.) | |
My script is loading fine, but separate style sheets aren't working | |
<!DOCTYPE html> | |
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can't possibly teach yourself how to be a web developer in 180 days, right? Yet that is what Jennifer Dewalt did. In her blog, blog.jenniferdewalt.com, Jennifer outlines her approach of making and publishing one web site per day for 180 days. Additionally, each web site is accompanied by a blog post. The entire collection of 180 web sites can be found at jenniferdewalt.com. Her sites start out as small HTML and CSS projects and gain sophistication as she dabbles into the realms of Rails and Node. | |
Having a well-defined mission and setting goals to reach that mission is what it is all about. A mission statement should be clear, measurable, and time bound. Jennifer's mission, 180 websites in 180 days, is short, sweet, and fits the bill. Rather than by reading books or attending a bootcamp, Jennifer gained the knowledge she needed by relying on "StackOverflow, MDN, CSS Tricks, blogs and demos". (Dewalt) | |
My mission is to have a job as a web developer by March, 2014. (Earlier would be better, but I don't want t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/reloader' | |
require 'typhoeus' | |
require 'json' | |
# @query = "Star Wars" | |
# movie_list_request = Typhoeus.get( | |
# "http://www.omdbapi.com", | |
# :params => { :s => @query } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/reloader' | |
require 'yahoofinance' | |
get '/' do | |
@method = "post" | |
@action = "/stock" | |
erb :form |
NewerOlder