Skip to content

Commit 79a0403

Browse files
author
Jiri Kolarik
authored
Merge pull request #79 from werein/demo
Create demo app
2 parents 9ca983a + 09087b5 commit 79a0403

File tree

7 files changed

+189
-10
lines changed

7 files changed

+189
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.yardoc
66
.idea
77
.DS_Store
8-
Gemfile.lock
98
gemfiles/*.gemfile.lock
109
InstalledFiles
1110
_yardoc

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in x-editable-rails.gemspec
44
gemspec
5+
6+
gem 'sprockets'
7+
gem 'sass-rails'
8+
gem 'bootstrap-sass'
9+
gem 'coffee-rails'
10+
gem 'jquery-rails'
11+
gem 'haml'
12+
gem 'globalize'
13+
gem 'responders'
14+
gem 'pg'
15+
gem 'rails_12factor'
16+
gem 'uglifier'

Gemfile.lock

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
PATH
2+
remote: .
3+
specs:
4+
x-editable-rails (1.5.5)
5+
railties
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actionmailer (4.2.4)
11+
actionpack (= 4.2.4)
12+
actionview (= 4.2.4)
13+
activejob (= 4.2.4)
14+
mail (~> 2.5, >= 2.5.4)
15+
rails-dom-testing (~> 1.0, >= 1.0.5)
16+
actionpack (4.2.4)
17+
actionview (= 4.2.4)
18+
activesupport (= 4.2.4)
19+
rack (~> 1.6)
20+
rack-test (~> 0.6.2)
21+
rails-dom-testing (~> 1.0, >= 1.0.5)
22+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
23+
actionview (4.2.4)
24+
activesupport (= 4.2.4)
25+
builder (~> 3.1)
26+
erubis (~> 2.7.0)
27+
rails-dom-testing (~> 1.0, >= 1.0.5)
28+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29+
activejob (4.2.4)
30+
activesupport (= 4.2.4)
31+
globalid (>= 0.3.0)
32+
activemodel (4.2.4)
33+
activesupport (= 4.2.4)
34+
builder (~> 3.1)
35+
activerecord (4.2.4)
36+
activemodel (= 4.2.4)
37+
activesupport (= 4.2.4)
38+
arel (~> 6.0)
39+
activesupport (4.2.4)
40+
i18n (~> 0.7)
41+
json (~> 1.7, >= 1.7.7)
42+
minitest (~> 5.1)
43+
thread_safe (~> 0.3, >= 0.3.4)
44+
tzinfo (~> 1.1)
45+
arel (6.0.3)
46+
autoprefixer-rails (6.0.3)
47+
execjs
48+
json
49+
bootstrap-sass (3.3.5)
50+
autoprefixer-rails (>= 5.0.0.1)
51+
sass (>= 3.2.19)
52+
builder (3.2.2)
53+
coffee-rails (4.1.0)
54+
coffee-script (>= 2.2.0)
55+
railties (>= 4.0.0, < 5.0)
56+
coffee-script (2.4.1)
57+
coffee-script-source
58+
execjs
59+
coffee-script-source (1.9.1.1)
60+
erubis (2.7.0)
61+
execjs (2.6.0)
62+
globalid (0.3.6)
63+
activesupport (>= 4.1.0)
64+
globalize (4.0.3)
65+
activemodel (>= 4.0.0, < 5)
66+
activerecord (>= 4.0.0, < 5)
67+
haml (4.0.7)
68+
tilt
69+
i18n (0.7.0)
70+
jquery-rails (4.2.1)
71+
rails-dom-testing (>= 1, < 3)
72+
railties (>= 4.2.0)
73+
thor (>= 0.14, < 2.0)
74+
json (1.8.3)
75+
loofah (2.0.3)
76+
nokogiri (>= 1.5.9)
77+
mail (2.6.3)
78+
mime-types (>= 1.16, < 3)
79+
mime-types (2.6.2)
80+
mini_portile (0.6.2)
81+
minitest (5.8.0)
82+
nokogiri (1.6.6.2)
83+
mini_portile (~> 0.6.0)
84+
pg (0.18.4)
85+
rack (1.6.4)
86+
rack-test (0.6.3)
87+
rack (>= 1.0)
88+
rails (4.2.4)
89+
actionmailer (= 4.2.4)
90+
actionpack (= 4.2.4)
91+
actionview (= 4.2.4)
92+
activejob (= 4.2.4)
93+
activemodel (= 4.2.4)
94+
activerecord (= 4.2.4)
95+
activesupport (= 4.2.4)
96+
bundler (>= 1.3.0, < 2.0)
97+
railties (= 4.2.4)
98+
sprockets-rails
99+
rails-deprecated_sanitizer (1.0.3)
100+
activesupport (>= 4.2.0.alpha)
101+
rails-dom-testing (1.0.7)
102+
activesupport (>= 4.2.0.beta, < 5.0)
103+
nokogiri (~> 1.6.0)
104+
rails-deprecated_sanitizer (>= 1.0.1)
105+
rails-html-sanitizer (1.0.2)
106+
loofah (~> 2.0)
107+
rails_12factor (0.0.3)
108+
rails_serve_static_assets
109+
rails_stdout_logging
110+
rails_serve_static_assets (0.0.4)
111+
rails_stdout_logging (0.0.4)
112+
railties (4.2.4)
113+
actionpack (= 4.2.4)
114+
activesupport (= 4.2.4)
115+
rake (>= 0.8.7)
116+
thor (>= 0.18.1, < 2.0)
117+
rake (10.4.2)
118+
responders (2.1.0)
119+
railties (>= 4.2.0, < 5)
120+
sass (3.4.19)
121+
sass-rails (5.0.6)
122+
railties (>= 4.0.0, < 6)
123+
sass (~> 3.1)
124+
sprockets (>= 2.8, < 4.0)
125+
sprockets-rails (>= 2.0, < 4.0)
126+
tilt (>= 1.1, < 3)
127+
sprockets (3.3.4)
128+
rack (~> 1.0)
129+
sprockets-rails (2.3.3)
130+
actionpack (>= 3.0)
131+
activesupport (>= 3.0)
132+
sprockets (>= 2.8, < 4.0)
133+
sqlite3 (1.3.10)
134+
thor (0.19.1)
135+
thread_safe (0.3.5)
136+
tilt (2.0.1)
137+
tzinfo (1.2.2)
138+
thread_safe (~> 0.1)
139+
uglifier (2.7.2)
140+
execjs (>= 0.3.0)
141+
json (>= 1.8.0)
142+
143+
PLATFORMS
144+
ruby
145+
146+
DEPENDENCIES
147+
bootstrap-sass
148+
coffee-rails
149+
globalize
150+
haml
151+
jquery-rails
152+
pg
153+
rails (~> 4.0)
154+
rails_12factor
155+
responders
156+
sass-rails
157+
sprockets
158+
sqlite3
159+
uglifier
160+
x-editable-rails!
161+
162+
BUNDLED WITH
163+
1.10.6

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: cd test/dummy && bin/rails server -p $PORT

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
X-editable for Rails
66

7+
## Live demo
8+
9+
Checkout live demo [here](https://x-editable-rails.herokuapp.com/?denied=true)
10+
711
## Installation
812

913
Add this line to your application's Gemfile:
@@ -77,8 +81,8 @@ And related stylesheets:
7781

7882
### Making Things Editable
7983

80-
`x-editable-rails` provides a helper method in your view to make your model values editable.
81-
By default, you need to specify the model and property that should be editable.
84+
`x-editable-rails` provides a helper method in your view to make your model values editable.
85+
By default, you need to specify the model and property that should be editable.
8286
A `span` element is rendered with `data-*` attributes used by `x-editable`.
8387

8488
```ruby
@@ -154,14 +158,14 @@ end
154158

155159
### "Don't Repeat Yourself" Templates
156160

157-
To make your views cleaner, you can specify all your options for each class and attribute in a YAML configuration file.
161+
To make your views cleaner, you can specify all your options for each class and attribute in a YAML configuration file.
158162
Attributes where the `title` or `placeholder` are not different except maybe capitalized can be left out because they are automatically capitalized when rendered (see above).
159163

160-
This example uses the `MailingList` class and its attributes.
161-
The attribute value can be a string, which is used as the `title` and `placeholder`.
164+
This example uses the `MailingList` class and its attributes.
165+
The attribute value can be a string, which is used as the `title` and `placeholder`.
162166
If you want to specify other options, create a hash of options.
163167

164-
Install configuration file like this: `rails g x_editable_rails:install`, this step is not necessary
168+
Install configuration file like this: `rails g x_editable_rails:install`, this step is not necessary
165169

166170
```yaml
167171
class_options:

test/dummy/config/environments/production.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
# config.assets.css_compressor = :sass
2828

2929
# Do not fallback to assets pipeline if a precompiled asset is missed.
30-
config.assets.compile = false
30+
config.assets.compile = true
3131

3232
# Generate digests for assets URLs.
33-
config.assets.digest = true
33+
config.assets.digest = false
3434

3535
# Version of your assets, change this if you want to expire all your assets.
3636
config.assets.version = '1.0'

x-editable-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.summary = %q{X-editable for Rails}
1313
spec.homepage = "https://github.com/werein/x-editable-rails"
1414
spec.license = "MIT"
15-
15+
1616
spec.files = Dir["{lib,vendor}/**/*"] + ["LICENSE.txt", "README.md"]
1717
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
1818
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})

0 commit comments

Comments
 (0)