flockonus-nifty-generators 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  class <%= plural_class_name %>Controller < ApplicationController
2
+ layout 'admin'
2
3
  <%= controller_methods :actions %>
3
4
  end
@@ -1,7 +1,7 @@
1
1
  <%% title "<%= plural_name.titleize %>" %>
2
2
 
3
3
  <%- if action? :new -%>
4
- <p><%%= link_to "Adicionar +", <%= item_path :action => :new %> %></p>
4
+ <p><%%= link_to "Adicionar +", { :controller => controller.controller_name, :action => 'new' } %></p>
5
5
  <%- end -%>
6
6
  <table>
7
7
  <tr>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flockonus-nifty-generators
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Fabiano PS