Skip to content

Commit 15782ec

Browse files
committed
Completed Ajax. Started to refactor. About to start private_pub
0 parents  commit 15782ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1139
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*.log
16+
/tmp

Gemfile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
source 'https://rubygems.org'
2+
3+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4+
gem 'rails', '4.0.1'
5+
6+
gem 'starter_generators'
7+
8+
gem 'font-awesome-rails'
9+
10+
# Use sqlite3 as the database for Active Record
11+
gem 'sqlite3'
12+
13+
# Use SCSS for stylesheets
14+
gem 'sass-rails', '~> 4.0.0'
15+
16+
# Use Uglifier as compressor for JavaScript assets
17+
gem 'uglifier', '>= 1.3.0'
18+
19+
# Use CoffeeScript for .js.coffee assets and views
20+
gem 'coffee-rails', '~> 4.0.0'
21+
22+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
23+
# gem 'therubyracer', platforms: :ruby
24+
25+
# Use jquery as the JavaScript library
26+
gem 'jquery-rails'
27+
28+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
29+
gem 'turbolinks'
30+
31+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
32+
gem 'jbuilder', '~> 1.2'
33+
34+
group :doc do
35+
# bundle exec rake doc:rails generates the API under doc/api.
36+
gem 'sdoc', require: false
37+
end
38+
39+
# Use ActiveModel has_secure_password
40+
# gem 'bcrypt-ruby', '~> 3.0.0'
41+
42+
# Use unicorn as the app server
43+
# gem 'unicorn'
44+
45+
# Use Capistrano for deployment
46+
# gem 'capistrano', group: :development
47+
48+
# Use debugger
49+
# gem 'debugger', group: [:development, :test]

Gemfile.lock

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actionmailer (4.0.1)
5+
actionpack (= 4.0.1)
6+
mail (~> 2.5.4)
7+
actionpack (4.0.1)
8+
activesupport (= 4.0.1)
9+
builder (~> 3.1.0)
10+
erubis (~> 2.7.0)
11+
rack (~> 1.5.2)
12+
rack-test (~> 0.6.2)
13+
activemodel (4.0.1)
14+
activesupport (= 4.0.1)
15+
builder (~> 3.1.0)
16+
activerecord (4.0.1)
17+
activemodel (= 4.0.1)
18+
activerecord-deprecated_finders (~> 1.0.2)
19+
activesupport (= 4.0.1)
20+
arel (~> 4.0.0)
21+
activerecord-deprecated_finders (1.0.3)
22+
activesupport (4.0.1)
23+
i18n (~> 0.6, >= 0.6.4)
24+
minitest (~> 4.2)
25+
multi_json (~> 1.3)
26+
thread_safe (~> 0.1)
27+
tzinfo (~> 0.3.37)
28+
arel (4.0.1)
29+
atomic (1.1.14)
30+
builder (3.1.4)
31+
coffee-rails (4.0.0)
32+
coffee-script (>= 2.2.0)
33+
railties (>= 4.0.0.beta, < 5.0)
34+
coffee-script (2.2.0)
35+
coffee-script-source
36+
execjs
37+
coffee-script-source (1.6.3)
38+
erubis (2.7.0)
39+
execjs (2.0.1)
40+
font-awesome-rails (3.2.1.3)
41+
railties (>= 3.2, < 5.0)
42+
hike (1.2.3)
43+
i18n (0.6.5)
44+
jbuilder (1.5.1)
45+
activesupport (>= 3.0.0)
46+
multi_json (>= 1.2.0)
47+
jquery-rails (3.0.4)
48+
railties (>= 3.0, < 5.0)
49+
thor (>= 0.14, < 2.0)
50+
json (1.8.0)
51+
mail (2.5.4)
52+
mime-types (~> 1.16)
53+
treetop (~> 1.4.8)
54+
mime-types (1.25)
55+
minitest (4.7.5)
56+
multi_json (1.8.2)
57+
polyglot (0.3.3)
58+
rack (1.5.2)
59+
rack-test (0.6.2)
60+
rack (>= 1.0)
61+
rails (4.0.1)
62+
actionmailer (= 4.0.1)
63+
actionpack (= 4.0.1)
64+
activerecord (= 4.0.1)
65+
activesupport (= 4.0.1)
66+
bundler (>= 1.3.0, < 2.0)
67+
railties (= 4.0.1)
68+
sprockets-rails (~> 2.0.0)
69+
railties (4.0.1)
70+
actionpack (= 4.0.1)
71+
activesupport (= 4.0.1)
72+
rake (>= 0.8.7)
73+
thor (>= 0.18.1, < 2.0)
74+
rake (10.1.0)
75+
rdoc (3.12.2)
76+
json (~> 1.4)
77+
sass (3.2.10)
78+
sass-rails (4.0.0)
79+
railties (>= 4.0.0.beta, < 5.0)
80+
sass (>= 3.1.10)
81+
sprockets-rails (~> 2.0.0)
82+
sdoc (0.3.20)
83+
json (>= 1.1.3)
84+
rdoc (~> 3.10)
85+
sprockets (2.10.0)
86+
hike (~> 1.2)
87+
multi_json (~> 1.0)
88+
rack (~> 1.0)
89+
tilt (~> 1.1, != 1.3.0)
90+
sprockets-rails (2.0.1)
91+
actionpack (>= 3.0)
92+
activesupport (>= 3.0)
93+
sprockets (~> 2.8)
94+
sqlite3 (1.3.8)
95+
starter_generators (0.9.6)
96+
thor (0.18.1)
97+
thread_safe (0.1.3)
98+
atomic
99+
tilt (1.4.1)
100+
treetop (1.4.15)
101+
polyglot
102+
polyglot (>= 0.3.1)
103+
turbolinks (1.3.0)
104+
coffee-rails
105+
tzinfo (0.3.38)
106+
uglifier (2.2.0)
107+
execjs (>= 0.3.0)
108+
multi_json (~> 1.0, >= 1.0.2)
109+
110+
PLATFORMS
111+
ruby
112+
113+
DEPENDENCIES
114+
coffee-rails (~> 4.0.0)
115+
font-awesome-rails
116+
jbuilder (~> 1.2)
117+
jquery-rails
118+
rails (= 4.0.1)
119+
sass-rails (~> 4.0.0)
120+
sdoc
121+
sqlite3
122+
starter_generators
123+
turbolinks
124+
uglifier (>= 1.3.0)

README.rdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
== NOTEBOOK
2+
3+
Within this app, we are going to practice managing a CRUD resource -- only this time, with Ajax rather than with traditional HTML request/response.

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Notebook::Application.load_tasks

app/assets/images/.keep

Whitespace-only changes.

app/assets/images/bulb.jpg

435 KB
Loading

app/assets/javascripts/application.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= require_tree .
17+
18+
$(document).ready(function() {
19+
$("#title").on("click", function() {
20+
alert("Hello");
21+
})
22+
});
23+
24+
25+
26+
27+
28+
29+
30+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require reset
12+
*= require_self
13+
*= require font-awesome
14+
*= require_tree .
15+
*/

app/assets/stylesheets/notebook.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
body {
2+
background: #DDD;
3+
font: 24px/34px "Helvetica Neue", Helvetica, Arial, sans-serif;
4+
}
5+
6+
#theme_links {
7+
font: 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
8+
float: right;
9+
}
10+
11+
#container {
12+
background: #FFF;
13+
border-radius: 5px;
14+
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
15+
margin: 20px auto;
16+
padding-bottom: 20px;
17+
width: 960px;
18+
}
19+
20+
.legalpad {
21+
background: #FFF959;
22+
}
23+
24+
.notepad {
25+
background: #FFF;
26+
}
27+
28+
header {
29+
padding: 20px;
30+
border-bottom: 4px solid #70B0EE;
31+
margin-bottom: 20px;
32+
}
33+
34+
header h1 {
35+
font-size: 50px;
36+
font-weight: bold;
37+
}
38+
39+
header h1 a {
40+
color: #000;
41+
text-decoration: none;
42+
}
43+
44+
45+
ul li {
46+
border-bottom: 2px dotted #70B0EE;
47+
margin-top: 4px;
48+
margin-bottom: 4px;
49+
padding: 0 15px;
50+
list-style: none;
51+
}
52+
53+
ul li a {
54+
color: #000;
55+
text-decoration: none;
56+
margin-left: 10px;
57+
}
58+
59+
ul li div {
60+
float: right;
61+
}
62+
63+
input {
64+
font: 24px/34px "Helvetica Neue", Helvetica, Arial, sans-serif;
65+
padding-left: 5px;
66+
width: 99%;
67+
}

0 commit comments

Comments
 (0)