Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1489 Bytes
1 | QuietPrototype |
2 | ============== |
3 | |
4 | Makes it easy to include Prototype only when you want it while still having |
5 | an application-global layout. That is, rather than using the following in a |
6 | "layouts/application.html.erb" file: |
7 | |
8 | <%= javascript_include_tag :defaults %> |
9 | |
10 | ...you instead do something like this: |
11 | |
12 | <%= include_prototype_if_used %> |
13 | |
14 | ...and JS links will only be output if a Controller handling the current |
15 | action has said that it wants Prototype facilities for that action's view |
16 | by making a call along the lines of: |
17 | |
18 | uses_prototype() |
19 | |
20 | ...around the same place it might declare "before_filter" items and the like. |
21 | The "uses_prototype" method takes a hash of options which are passed straight |
22 | through to the Rails "before_filter" API allowing the Controller to further |
23 | refine its use of Prototype to certain views, for example, to use Prototype in |
24 | an "edit" action (and in a related "update" action in case an update fails and |
25 | re-renders the "edit" view): |
26 | |
27 | uses_prototype( :only => [ :edit, :update ] ) |
28 | |
29 | |
30 | Heritage |
31 | ======== |
32 | |
33 | The plugin wrapper concept comes from larsklevan's "yui_editor" plugin: |
34 | |
35 | http://github.com/larsklevan/yui_editor/tree/master |
36 | |
37 | The QuietPrototype plugin would not exist without this component. My thanks go |
38 | to the author for his hard work. |
39 | |
40 | |
41 | Installation |
42 | ============ |
43 | |
44 | script/plugin install [TBD] |
45 | |
46 | |
47 | Feedback |
48 | ======== |
49 | |
50 | Send feedback and questions to ahodgkin@rowing.org.uk |
51 | |
52 | Copyright (c) 2009 Hipposoft (Andrew Hodgkinson). |
53 | Released under the MIT license. |