CARVIEW |
-
Everyone's favorite memcached plugin for ActiveRecord.Forked from defunkt/cache_fu Tue Aug 19 20:54:04 -0700 2008
-
A no-frills Merb wiki extracted from wiki.merbivore.comForked from meekish/collective Sat Jul 19 13:31:21 -0700 2008
-
Fork of the color-tools gemCreated Tue Jul 15 08:10:04 -0700 2008
-
Ruby process monitorForked from mojombo/god Sun Jun 22 23:56:06 -0700 2008
-
Grit is a Ruby library for extracting information from a git repository in an object oriented man...Forked from mojombo/grit Sun Jul 06 14:05:29 -0700 2008
-
Johnson wraps JavaScript in a loving Ruby embrace.Forked from jbarnette/johnson Tue Jun 17 11:05:28 -0700 2008
-
Rails named routes in javascriptForked from jsierles/js_named_routes Tue Jun 24 06:24:14 -0700 2008
-
PHP/PECL library for SSH2, based on https://pecl.php.net/package/ssh2/0.10 which is unmaintained s...Created Fri Sep 05 09:14:54 -0700 2008
-
Ruby on RailsForked from rails/rails Sun Jul 06 12:13:28 -0700 2008
-
Simple REST client for Ruby, inspired by microframework syntax for specifying actions.Forked from adamwiggins/rest-client Wed Jul 09 19:52:36 -0700 2008
-
Ruby Interface to HadoopCreated Sun Aug 31 12:27:26 -0700 2008
Public Activity
d27981d3633fa5b0e952e1cdffb3c121f1f739af
Add source host and port for ssh2_tunnel
2556546af6fafe439ed63d3c748dd913228223d5
Bump version
Well, this sucks: I was expecting GitHub to notify me of new comments instead of having to login onto the website and pay attention to my timeline.
The primary reason for my adding a namespace is because other prototype methods are already placed in a namespace. For instance: the Ajax namespace containing Ajax.PeriodicalUpdater, Ajax.Request, Ajax.Response, Ajax.Updater, and a few other methods.
Following that, I just have the habit of placing related methods into their own namespaces. I think the typing could be prevented if the Ajax methods could make use of these named routes automatically.
Reason for the change aside, a configurable option would be good since I suppose it’s a personal preference. I’d rather not add yet another helper method just to add a:namespace
option.javascript_include_tag
already accepts an option hash, so it’s possible to do:
javascript_include_tag :named_routes, :namespace => true
but it’s not exactly a clean implementation either. Another option, going on the assumption that your entire application would use the same namespace, could be allowing something inenvironment.rb
:
JsNamedRoutes.namespace = "Rts"