scaf-generator 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ class ScafGenerator < Rails::Generators::Base
29
29
  template "views/nombre.html.erb", "app/views/admin/#{plural_name}/_#{singular_name}.html.erb"
30
30
 
31
31
  # Agrega Ruta en namespace :admin
32
- inject_into_file 'config/routes.rb', "\n resources :#{plural_name}" , :after => /namespace :admin do/
32
+ inject_into_file 'config/routes.rb', "\n resources :#{plural_name} do\n post :reordenar, :on => :collection\n end" , :after => /namespace :admin do/
33
33
  end
34
34
 
35
35
  private
@@ -2,4 +2,4 @@
2
2
  <nav>
3
3
  <%%= link_to "Volver", <%= admin_items_path %> %>
4
4
  </nav>
5
- <%%= render "formulario", :<%= item %> => @<%= item %>, :url => <%= admin_item_path %>(@<%= item %>) %>
5
+ <%%= render "formulario", :<%= item %> => @<%= item %>, :url => <%= admin_items_path %>(@<%= item %>) %>
@@ -1,5 +1,5 @@
1
1
  module Scaf
2
2
  module Generator
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaf-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-15 00:00:00.000000000 Z
12
+ date: 2012-02-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Scaffold adaptado a las necesidades de Xaver
15
15
  email: