I hereby claim:
- I am amykangweb on github.
- I am amyestately (https://keybase.io/amyestately) on keybase.
- I have a public key ASBbjhy175F7CaiO_5cV_Gs86cjiJJsEg3PNK3nD6oZ2mAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title> | |
Simply JavaScript | |
</title> | |
</head> | |
<body> | |
<h1>Add Stuff Below Here</h1> |
var removeText = function() { | |
var paraElement = this; | |
container.removeChild(paraElement); | |
} | |
var bindElementEvents = function(element) { | |
element.onclick = removeText; | |
} | |
newButton.onclick = addText; |
var addText = function() { | |
var paragraph = document.createElement("p"); | |
var newContent = newInput.value; | |
paragraph.innerText = newContent; | |
container.appendChild(paragraph); | |
bindElementEvents(paragraph); | |
inputValue.value = ""; | |
} |
var container = document.getElementById("container"); | |
var newInput = document.getElementById("new-content"); | |
var newButton = document.getElementsByTagName("button")[0]; |
def published | |
@post.update(published: true) | |
redirect_to :back, notice: "This post has been published!" | |
end |
resources :posts do | |
member do | |
patch :published | |
end | |
end |
<%= link_to "Publish this Post", published_post_path(@post), method: :patch %> |