You now know how to create tables and CRUD using PSQL. Now you just need reps writing and executing sql.
- get comfortable executing basic CRUD commands in psql
psql
opens the postgres consolepsql -d some_database_name -f some_sql_file.sql
executes the SQL in the given file within the database specified\q
quits the postgres console\l
lists all databases\c database_name
connects you to database_name
You just learned how to create jQuery objects. Now take the next 25 minutes to research and experiment with the following methods, all of which you can call on jQuery objects. (And this is only the beginning, there are many more to be found)!
.text()
.html()
.attr()
.addClass()
.removeClass()
.toggleClass()
We just went step by step through the OAuth workflow for GitHub, but not every provider requires the same params and configuration. Thus, it's important to wrestle with the documentation to find exactly what each service provider requires. And that's exactly what you're going to do now.
github_oauth
app as a helpful guide.We've already worked extensively with GET requests and POST requests, but the HTTP spec defines a handful of others, which you're about to learn about.
The DMV is notorious for making you fill out numerous forms. You are going to recreate that hellish process for users of the California DMV's web application.
"/first_form"
. Make this route render a template called first_form.erb
.first_form.erb
, make a form. Make the form POST to "/first_form"
."/first_form"
.You just persisted some diary entries. Now it's time to add some sketches to your diary, like a real person.
sketches.erb
. This template will eventually display a list of sketches, but for now you can leave it blank.You just started playing around with form inputs, gaining exposure to the text input, the select input, the hidden input, and the checkbox. Fortunately for the development community, there are many more to choose from, and most make our lives a whole lot easier.
Within the form we started writing for the Goggle search engine, add inputs of the following types, making sure to provide each with a 'name' attribute, and wrapping each in a label tag!
date
type.file
type.As a user of the interweb, you probably change data server-side all the time, which means you're using POST requests all the time. This is a thought-exercise meant to clue you in to all the ways in which you interact with the web using POST requests.
This is a partner exercise.
With your partner, discuss the following questions: