RubyGems Navigation menu

js-rails-routes 1.0.0

+js-rails-routes+ is a utility for generating JavaScript equivalents to the +<route>_path+ functions provided by {Ruby on Rails}[https://github.com/rails/rails]. This allows you to do very similar things in your {+ejs+}[https://rubygems.org/gems/ejs/] JavaScript templates as you would in your +erb+ ruby templates. You can move html rendering to the client and keep it looking very similar to how it would look on the server. For example, if you have a model +Item+ and a simple route to list all the items, a link to that items page (using an explicit +a+ anchor tag instead of the Rails +link_to+) would look the same in either an +erb+ file or an +ejs+ file: <a href="<%= items_path() %>">List all Items</a> This gem was originally developed as part of the {MVCoffee}[http://mvcoffee.org] suite of tools, and integrates strongly with the {mvcoffee.js}[https://github.com/kirkbowers/mvcoffee] CoffeeScript MVC framework.

Gemfile:
=

安装:
=

版本列表:

  1. 1.0.0 December 31, 2015 (7.0 KB)

Development 依赖 (2):

hoe ~> 3.13
rdoc ~> 4.0

所有者:

作者:

  • Kirk Bowers

SHA 256 校验和:

=

下载总量 3,047

这个版本 3,047

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 0

链接: