This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.DS_Store | Thu Jan 22 03:16:59 -0800 2009 | |
| |
README.markdown | Thu Jan 22 03:35:31 -0800 2009 | |
| |
Rakefile | Thu Jan 22 03:16:59 -0800 2009 | |
| |
init.rb | Thu Jan 22 03:16:59 -0800 2009 | |
| |
install.rb | Thu Jan 22 03:16:59 -0800 2009 | |
| |
lib/ | Thu Jan 22 03:16:59 -0800 2009 | |
| |
tasks/ | Thu Jan 22 03:16:59 -0800 2009 | |
| |
test/ | Thu Jan 22 03:16:59 -0800 2009 | |
| |
uninstall.rb | Thu Jan 22 03:16:59 -0800 2009 | |
| |
views/ | Thu Jan 22 03:16:59 -0800 2009 |
README.markdown
JsRoutes
Note this is a fairly old plugin, js_named_routes is a more up to date and fully featured take on the same problem.
Include '/javascripts/js_routes.js' in your HTML and it makes your routes available in javascript.
<%= javascript_include_tag :js_routes %>
In rails:
message_url(@message, :format => 'js')
Javascript:
var message_id = 1;
message_url(message_id, {format: 'js'})
These are built on the fly, to cache them for production run the task:
$rake js_routes:cache







