Skip to content

Instantly share code, notes, and snippets.

@dohoonk
Created February 2, 2016 03:25
Show Gist options
  • Select an option

  • Save dohoonk/3be8c0e86d0491dd30d5 to your computer and use it in GitHub Desktop.

Select an option

Save dohoonk/3be8c0e86d0491dd30d5 to your computer and use it in GitHub Desktop.
codecore

RUBY and SINATRA review

Difference between module and class

What protocol stack powers the web?

What is REST?

what protocol does it depend on?

When to use POST and GET

get is to fetch

post is to send data, submitting something

What HTML is used to send paramaeteres to the server in forms?

the name

#RAILS

Rails is very opinionated

lets you follow constructed convention Rails = Ruby + Patterns (MBC) Rails ins a gem

##Commands for rails

rails new awesome_answers -d postgresql -T

bin/rake db:create bin/rails s

MODEl VIEW CONTROL

API goes to app folder

.gitignore takes stuff that doesnt go on github

config.ru is for rack

gemfile is for bundler

Bundler is a gem that manages ither gems

rails 4.2.5.1 first number is major release second number is minor release two numbers at the back is very minor release (fixing bugs)

Convention over Configuration

DHK$ bin/rails g controller welcome

index .html .erb | | | | | | cotroller action format templating system

bin/rake routes to see the routes

Hello|

as: :greet Hello|

Hello| About|

Greet John

<%= link_to "hello", hello_path %>

link_to is a helper method that is built in with rails, its a view helper methd, meanning it's accessible only in the views/ view helpers.

render "/welcome/about", layout: false

http://localhost:3000/rails/info/routes

linkedin

summary

projects give a brief discription what technology you used -create a profile page

IdeaBox(Link) December 2015 The IdeaBox is my final project for CodeCore Development Bootcamp. This app enables users to initiate an idea project and invite other users to collaborate and help me out in building the requirements of the idea project to develop.

Technologies used: Ruby on Rails, Postgresql, HTML5, CSS3, SemanticUI, Javascript and Git.

good example: Ivy Rubi-Olamit

make sure your projects are live

add group projects

angel list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment