- What does
MVC
stand for? model. view. controller. - What is the purpose of
MVC
? orgainzation - What is the command you would use to generate a new rails application called "twitter"? rails new twitter
- Which file do you edit to add additional gems to your rails app? gemfile
- What is the purpose of
.gitignore
file? tracked files, but tells git which files to ignore. - What is the
app/assets
folder used for?
This file contains hidden or 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
git fetch | |
git checkout -b cl-### origin/sprint015 | |
To commit your changes: | |
git add . | |
git commit -am "Commit message" | |
git push origin cl-### | |
To create pull request: |
This file contains hidden or 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
typically, I start the morning off with: | |
$ cd cls3/ | |
move to whichever/or create branch | |
$ git fetch | |
$ git pull origin master | |
bundle | |
$ mysql.server start | |
$rails s |
This file contains hidden or 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
I'm looking to do small testing on a sinatra app I've been building. | |
https://github.com/cheezedigital/itempiece6 | |
I'd like the test to be small, though I'd like to test every page in the application. | |
like, | |
test "should get about" do | |
get :about |
This file contains hidden or 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
this file was taken from a rails application, and what I'm trying to do is test just like below, but in a sinatra application. new to learning how to think, but totally understand what's happening here in the static_pages_controller_test.rb file. is there a particualr gem i can install which will generate the proper files for testing out the sinatra application? | |
here is the sinatra application: https://github.com/cheezedigital/itempiece6 | |
here is the file from a rails application I'm doing via a tutorial on the webs n shit. | |
require 'test_helper' | |
class StaticPagesControllerTest < ActionController::TestCase | |
test "should get home" do |
This file contains hidden or 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
// first download the swt jar, in this instance to "swt/win32.jar" | |
// then compile like javac -cp swt/win32.jar TextEditor.java | |
// then run like java -cp .;swt/win32.jar TextEditor | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.ResourceBundle; | |
import java.util.Vector; | |
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.custom.ExtendedModifyEvent; |
This file contains hidden or 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
Last login: Wed Sep 24 20:20:53 on ttys000 | |
~$ ls | |
Applications/ Documents/ Dropbox/ Movies/ Pictures/ Sites/ justin/ project/ temp/ | |
Desktop/ Downloads/ Library/ Music/ README.md app/ mystuff/ projects/ testproject/ | |
~$ rvm install 2.1.2 | |
Searching for binary rubies, this might take some time. | |
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.2.tar.bz2 | |
Checking requirements for osx. | |
Installing requirements for osx. | |
Updating system..... |
This file contains hidden or 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
cat ~/.ssh/id_rsa.pub | |
paste into terminal. | |
return given |
This file contains hidden or 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
properly trying to merge a branch - | |
ex: I'm currently working on a bracnch called testing. | |
1. git status | |
2. git add file | |
3. git commit -m "throw in a nice message" | |
4. git push origin testing. | |
git checkout (whatever branch) |