Skip to content

Instantly share code, notes, and snippets.

git init
git add .
git commit -m "message"
git remote add origin git@github.com:crazyboy867/simpsons-rails.git
git push -u origin master
I'm getting the following error message ===>
To git@github.com:crazyboy867/simpsons-rails.git
#OBJECTIVE
#Implement a caesar cipher that takes in a string and the shift factor and then outputs the modified string
puts "enter a sentence"
input = gets.chomp #store string in variable 'input'
puts "enter offset number"
offset = gets.chomp.to_i #store number in variable 'offset'. Convert string to integer (gets.chomp by default returns a string value)
<div id="images">
<h3>Images for toronto</h3>
<img src="to1.jpeg"/>
<img src="to2.jpeg"/>
<img src="to3.jpeg"/>
<img src="to4.jpeg"/>
</div>
------------------
<div id="images">
<h3>Images for toronto</h3>
<img src="to1.jpeg"/>
<img src="to2.jpeg"/>
<img src="to3.jpeg"/>
<img src="to4.jpeg"/>
</div>
------------------
ricky@ricky-VB:~$ curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 518 0 --:--:-- --:--:-- --:--:-- 522
100 22721 100 22721 0 0 21923 0 0:00:01 0:00:01 --:--:-- 41086
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: Signature made Mon 30 Mar 2015 05:52:13 PM EDT using RSA key ID BF04FF17
gpg: Can't check signature: public key not found
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
npm ERR! tar.unpack untar error /home/ricky/.npm/phantomjs/1.9.17/package.tgz
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "phantomjs"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /usr/lib/node_modules/phantomjs
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/usr/lib/node_modules/phantomjs'
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
class CommentsController < ApplicationController
def create
@movie = Movie.find(params[:id])
@comment = @movie.comments.new(comment_params)
@comment.user = current_user
if @comment.save
redirect_to movie_path(@movie)
else
source 'https://rubygems.org'
gem 'simple_form', '~> 3.1.1'
gem 'bootstrap-sass', '~> 3.3.5.1'
gem 'devise', '~> 3.5.2'
gem 'haml', '~> 4.0.7'
gem 'cocoon', '~> 1.2.6'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.2'
# Use sqlite3 as the database for Active Record
!!!
%html
%head
%title Mapp
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
%body
= yield