rieles 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rieles
|
2
2
|
|
3
|
-
|
3
|
+
Instala el archivo de inflections para pluralizar y singularizar según las reglas en Español, incluye el locale en Español y agrega templates erb para que el scaffold genere las vistas en Español.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,7 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
$ gem generate rieles
|
22
22
|
|
23
23
|
## Contributing
|
24
24
|
|
@@ -2,12 +2,12 @@
|
|
2
2
|
<%- object = "@#{singular_table_name}" -%>
|
3
3
|
<%%= render 'error_messages', <%= key_value :target, object %> %>
|
4
4
|
|
5
|
-
|
5
|
+
<%- attributes.each do |attribute| -%>
|
6
6
|
<div class="field">
|
7
7
|
<%%= f.label :<%= attribute.name %> %><br />
|
8
8
|
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
9
9
|
</div>
|
10
|
-
|
10
|
+
<%- end -%>
|
11
11
|
<div class="actions">
|
12
12
|
<%%= f.submit %>
|
13
13
|
</div>
|
@@ -18,15 +18,9 @@
|
|
18
18
|
<%- attributes.each do |attribute| -%>
|
19
19
|
<td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
|
20
20
|
<%- end -%>
|
21
|
-
<%- if options.cancan? -%>
|
22
|
-
<td><%%= link_to 'Mostrar', <%= singular_table_name %> if can? :read, @<%= singular_table_name %> %></td>
|
23
|
-
<td><%%= link_to 'Editar', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) if can? :update, @<%= singular_table_name %> %></td>
|
24
|
-
<td><%%= link_to 'Eliminar', <%= singular_table_name %>, <%= key_value :confirm, "'¿Está usted seguro?'" %>, <%= key_value :method, ":delete" %> if can? :destroy, @<%= singular_table_name %> %></td>
|
25
|
-
<%- else -%>
|
26
21
|
<td><%%= link_to 'Mostrar', <%= singular_table_name %> %></td>
|
27
22
|
<td><%%= link_to 'Editar', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td>
|
28
23
|
<td><%%= link_to 'Eliminar', <%= singular_table_name %>, <%= key_value :confirm, "'¿Está usted seguro?'" %>, <%= key_value :method, ":delete" %> %></td>
|
29
|
-
<%- end -%>
|
30
24
|
</tr>
|
31
25
|
<%% end %>
|
32
26
|
</tbody>
|
@@ -2,14 +2,10 @@
|
|
2
2
|
|
3
3
|
<%- attributes.each do |attribute| -%>
|
4
4
|
<p>
|
5
|
-
<b><%= attribute.human_name %>:</b>
|
6
|
-
<%%= @<%= singular_table_name %>.<%= attribute.name %> %>
|
5
|
+
<b><%= attribute.human_name %>:</b>
|
6
|
+
<%%= @<%= singular_table_name %>.<%= attribute.name %> %>
|
7
7
|
</p>
|
8
|
-
<%- end -%>
|
9
8
|
|
10
|
-
<%- if options.cancan? -%>
|
11
|
-
<%%= link_to 'Editar', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) if can? :update <%= singular_table_name.camelize %> %>
|
12
|
-
<%- else -%>
|
13
|
-
<%%= link_to 'Editar', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %>
|
14
9
|
<%- end -%>
|
15
|
-
|
10
|
+
<%%= link_to 'Editar', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %> |
|
11
|
+
<%%= link_to 'Listado', <%= index_helper %>_path %>
|
data/lib/rieles/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rieles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
61
|
+
rubygems_version: 1.8.23
|
62
62
|
signing_key:
|
63
63
|
specification_version: 3
|
64
64
|
summary: Instala inflections, locales y templates de scaffold para trabajar en Español.
|