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:
=

installation:
=

Versions:

  1. 1.0.0 December 31, 2015 (7 ko)

Dépendances de Development (2):

hoe ~> 3.13
rdoc ~> 4.0

Propriétaires:

Auteurs:

  • Kirk Bowers

Total de contrôle SHA 256:

=
Star

Total de téléchargements 3 033

Pour cette version 3 033

Version publiée:

License:

MIT

Version de Ruby requise: >= 0

Liens: