-
Notifications
You must be signed in to change notification settings - Fork 8
/
NOTES
68 lines (39 loc) · 2.24 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
http://coding.smashingmagazine.com/2011/06/23/a-guide-to-starting-your-own-rails-engine-gem/
--------------------------------------------------------------------------------
Template initialized with identifier /home/choi/projects/kf3/app/views/shared/_navigation.html.erb
--------------------------------------------------------------------------------
Template initialized with handler ActionView::Template::Handlers::ERB
--------------------------------------------------------------------------------
Template initialized with details {:virtual_path=>"shared/_navigation", :format=>:html}
attr_reader :source, :identifier, :handler, :virtual_path, :formats, :original_encoding
http://edgeapi.rubyonrails.org/classes/Rails/Engine.html
Other related projects
http://www.webputty.net/
WebPutty is a simple CSS editing and hosting service.
http://blog.fogcreek.com/webputty-css-editing-goes-boink/?fccmp=webputty
http://ace.ajax.org/
Ace is a standalone code editor written in JavaScript. Our goal is to
create a web based code editor that matches and extends the features,
usability and performance of existing native editors such as TextMate,
Vim or Eclipse. It can be easily embedded in any web page and
JavaScript application. Ace is developed as the primary editor for
Cloud9 IDE and the successor of the Mozilla Skywriter (Bespin)
Project.
matt griffin's suggestion
http://codemirror.net/
start putting some guides to ERB and CSS styles in the collaborator interface
http://ace.ajax.org/build/kitchen-sink.html
ERB mode for ace editor
https://github.com/ajaxorg/ace/pull/184
https://github.com/ajaxorg/ace/wiki/Embedding---API
http://jonswope.com/2010/07/25/rails-3-engines-plugins-and-static-assets/
comment 9
initializer “static assets” do |app|
system(“ln -nfs #{root}/public/stylesheets/* #{app.root}/public/stylesheets/”)
system(“ln -nfs #{root}/public/javascripts/* #{app.root}/public/javascripts/”)
end
I moved my ::ActionDispatch::Static middleware up in the rack stack.
Instead of app.middleware.use (as Jon has suggested, above) I inserted
my engine’s static-serving middleware near the top of the rack stack
with
app.middleware.insert_before ::Rack::Lock, ::ActionDispatch::Static, “#{root}/public”