public
Description: A Rails plugin to add more support for javascript files.
Homepage:
Clone URL: git://github.com/osteele/javascript_fu.git
javascript_fu / TODO
100644 15 lines (11 sloc) 0.317 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
= JavaScript Fu To Do
 
Next:
- view helper
- ignore framework files in public/javascript
 
 
== RJS View Helper
Use RJS inside a view:
  javascript_tag do |page|
    page.insert_html :bottom, 'list', "<li>#{@item.name}</li>"
    page << "alert('JavaScript with Prototype.');"
    page.call 'alert', 'My message!'
  end