#About d3.js
#First Step ✮ Either use a gem - this one is most popular iblue/d3-rails
-You might get a json v1.8.1 error
-Delete the Gemfile.lock
#About d3.js
#First Step ✮ Either use a gem - this one is most popular iblue/d3-rails
-You might get a json v1.8.1 error
-Delete the Gemfile.lock
Types of Languages | |
Interpreted/Dynamic: Python, Ruby | |
Compiled: C, C++, Java | |
Scripting: ECMA | |
Markup: HTML, Markdown | |
What is a scripting language? | |
-A scripting or script language is a programming language that supports scripts, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator.[1] Scripting languages are often interpreted (rather than compiled). | |
JavaScript is an interpreted language, not a compiled language. A program such as C++ or Java needs to be compiled before it is run. The source code is passed through a program called a compiler, which translates it into bytecode that the machine understands and can execute. |
```bash | |
'rails new APPNAME --database=postgresql’ | |
*heroku doesn’t use sqlite3, which is default in new rails apps | |
***SQLite just stores the database to a file in your db/ folder, which is why it's incompatible with Heroku.*** | |
**Redo blog app using postgresql DB | |
**Then try deploying to heroku | |
How to deploy app to heroku |
##Bookmarklets
#####What is it?
#####What can it be used for?:
#Checkbox Field
<div class="field">
<%= f.label "Mechanics in Game:" %><br />
<%= f.collection_check_boxes :mechanic_ids, @mechanics.all, :id, :name do |m| %>
<div class="collection-check-box">
<%= m.check_box %>
<%= m.label %>
</div>