public
Description: The Custom Resource Name Plugin lets you add alias for your routes. This is very useful if you are developing a software to a country that does not speak English and wants all URLs in the native language.
Homepage: http://www.nomedojogo.com/custom-resource-name-plugin/
Clone URL: git://github.com/carlosbrando/custom_resource_name.git
updated readme
Alexander Lang (author)
Tue Aug 05 04:10:34 -0700 2008
commit  bb8988b52fa5278ece1a057f0466295f4d0610f1
tree    787f5efdd598353ae1773a0e4f165507b684229b
parent  c196171d7db3a7b7942f34c1e0aca53719b2e872
0
...
15
16
17
 
 
 
18
19
20
...
15
16
17
18
19
20
21
22
23
0
@@ -15,6 +15,9 @@ To use it is simpler yet. Open the file routes.rb of your project and include th
0
 # translate resources
0
 map.aliases :resources, :posts => ‘artigos‘, :comments => ‘comentarios‘
0
 
0
+# translate singleton resources
0
+map.aliases :resource, :comment => 'comentario'
0
+
0
 # translate actions
0
 map.aliases :actions, :new => ‘novo‘, :edit => ‘editar‘, :logout => ‘sair‘
0
 

Comments

    No one has commented yet.