paginas 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16974b016a7d1c475511728b0faca6738834dc0d
4
- data.tar.gz: e5f71e80e8755593e3dffb619e938375dec8350b
3
+ metadata.gz: 96edcbda95aafba9a1cf0786eb40b786b817c691
4
+ data.tar.gz: d4849bba7da1018755925c8c01f98e6ed44565c2
5
5
  SHA512:
6
- metadata.gz: 54ea6f0f47262b37e24a308acf7ccb92752eaf9deb415e2641387250e5b2e694e1435052360c7dbaba63e297377512bd44f800b6d85bb000b7666385bb64154e
7
- data.tar.gz: e5bcd9ece6e55d516b04645299dc7a49f3d45309bc3a161759b78b4b87fccc360a7aa9dba99ff2e5d0c3599c0092a1dab9fcdad5090ba5cbb38762fb2c73e55b
6
+ metadata.gz: 6db5e9a51ac536614f9385e02ce955c1f9f4fed87dcc8d04547df05a128a62ddf96e8d41d4d2987b2f59e0a726e64ec3991e6b14297f6bf11c19d3e20794a837
7
+ data.tar.gz: 70dd132f1017766c47a45a0e82b569ba0269617cb5fdaa5e6302b48e676f1024eb60b3b6e3b9e059b096556950a5315f965cd867a23d01029380c89331f09631
@@ -0,0 +1 @@
1
+ keep this foler
@@ -1,3 +1,3 @@
1
1
  module Paginas
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,30 @@
1
+ <%= form_for(@page) do |f| %>
2
+ <% if @page.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2>
5
+
6
+ <ul>
7
+ <% @page.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= f.label :title %><br>
16
+ <%= f.text_field :title %>
17
+ </div>
18
+ <div class="field">
19
+ <%= f.label :featured %><br>
20
+ <%= f.check_box :featured %>
21
+ </div>
22
+ <div class="field">
23
+ <%= f.label :text %><br>
24
+ <%= f.text_area :text, :class => "tinymce", :rows => 20, :cols => 80 %>
25
+ </div>
26
+ <%= tinymce %>
27
+ <div class="actions">
28
+ <%= f.submit %>
29
+ </div>
30
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <h3><%= @page.title %> </h3>
2
+ <div><%= @page.text.html_safe %></div>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Page</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @page %> |
6
+ <%= link_to 'Back', pages_path %>
@@ -0,0 +1,5 @@
1
+ <% @pages.each do |page| %>
2
+ <h3><%= page.title %></h3>
3
+ <div><%= page.text.html_safe %></div>
4
+ </tr>
5
+ <% end %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h3>Listing Pages</h3>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Title</th>
9
+ <th>Featured</th>
10
+ <th colspan="3"></th>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @pages.each do |page| %>
16
+ <tr>
17
+ <td><%= page.title %></td>
18
+ <td><%= page.featured %></td>
19
+ <td><%= link_to 'Show', page %></td>
20
+ <td><%= link_to 'Edit', edit_page_path(page) %></td>
21
+ <td><%= link_to 'Destroy', page, method: :delete, data: { confirm: "Are you sure?" } %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <br>
28
+
29
+ <%= link_to 'New Page', new_page_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Page</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', pages_path %>
@@ -0,0 +1,8 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h3><%= @page.title %> </h3>
4
+
5
+ <div><%= @page.text.html_safe %></div>
6
+
7
+ <%= link_to 'Edit', edit_page_path(@page) %> |
8
+ <%= link_to 'Back', pages_path %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paginas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Roque
@@ -82,6 +82,7 @@ files:
82
82
  - app/views/paginas/pages/index.html.erb
83
83
  - app/views/paginas/pages/new.html.erb
84
84
  - app/views/paginas/pages/show.html.erb
85
+ - app/views/paginas/shared/keep
85
86
  - config/routes.rb
86
87
  - db/migrate/20150212133316_create_paginas_pages.rb
87
88
  - lib/generators/paginas/views_generator.rb
@@ -97,6 +98,13 @@ files:
97
98
  - test/dummy/app/controllers/application_controller.rb
98
99
  - test/dummy/app/helpers/application_helper.rb
99
100
  - test/dummy/app/views/layouts/application.html.erb
101
+ - test/dummy/app/views/paginas/pages/_form.html.erb
102
+ - test/dummy/app/views/paginas/pages/display.html.erb
103
+ - test/dummy/app/views/paginas/pages/edit.html.erb
104
+ - test/dummy/app/views/paginas/pages/featured.html.erb
105
+ - test/dummy/app/views/paginas/pages/index.html.erb
106
+ - test/dummy/app/views/paginas/pages/new.html.erb
107
+ - test/dummy/app/views/paginas/pages/show.html.erb
100
108
  - test/dummy/bin/bundle
101
109
  - test/dummy/bin/rails
102
110
  - test/dummy/bin/rake
@@ -248,6 +256,13 @@ test_files:
248
256
  - test/dummy/tmp/pids/server.pid
249
257
  - test/dummy/app/helpers/application_helper.rb
250
258
  - test/dummy/app/controllers/application_controller.rb
259
+ - test/dummy/app/views/paginas/pages/display.html.erb
260
+ - test/dummy/app/views/paginas/pages/index.html.erb
261
+ - test/dummy/app/views/paginas/pages/new.html.erb
262
+ - test/dummy/app/views/paginas/pages/edit.html.erb
263
+ - test/dummy/app/views/paginas/pages/show.html.erb
264
+ - test/dummy/app/views/paginas/pages/_form.html.erb
265
+ - test/dummy/app/views/paginas/pages/featured.html.erb
251
266
  - test/dummy/app/views/layouts/application.html.erb
252
267
  - test/dummy/app/assets/stylesheets/application.css
253
268
  - test/dummy/app/assets/javascripts/application.js