phcpress 0.2.1b → 0.3.1b

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: 0ea6c9863f4a6ab4b2ef9d41b0564307b653b83f
4
- data.tar.gz: 233dcdd713305dfda23418effffe1b4389a0cb96
3
+ metadata.gz: d4edb4f9a4c615837aa1a9cdde06a58c3c88702b
4
+ data.tar.gz: 0dad4cb7abd0700ab4723d816dd4c4e59184c64d
5
5
  SHA512:
6
- metadata.gz: c2873b725d01419b2f9cb260ba929ce3cdd767efbc0a7dc9e506fd11b00b61246cfc1c1897d9765e855205536a192de0850972fcaaf90ef4285f2db86c7acbb7
7
- data.tar.gz: 62e0c34c8f5deac092a7c5e0b8d2f744af7e0e1eae7990e9fd7c66157410cadc464e31225bf0d835150c863de85c1a45bedb99e97edbb5635a89ea9a38ca9d8e
6
+ metadata.gz: 69a1b04e85f330c646ee22a4dd50c69bf82ef410a6dec849b72d9da76465d9af65220ba80ecc6b66f5ac76a710b1b7cfac7ab98d6bfcad60f5f6d11598ee5157
7
+ data.tar.gz: 5f98fa5b8170ba58f9610fb076415757bfb92870558dc2558d6dd45e7174c309285215f17813fbdb4f252a1116374d785e975118f7b8c54b66f9d71445dc858e
@@ -31,7 +31,7 @@ module Phcpress
31
31
  @blog_post = Blog::Post.new(blog_post_params)
32
32
 
33
33
  if @blog_post.save
34
- redirect_to blog_posts, notice: 'Post was successfully created.'
34
+ redirect_to blog_posts_path, notice: 'Blog post was successfully created.'
35
35
  else
36
36
  render :new
37
37
  end
@@ -40,7 +40,7 @@ module Phcpress
40
40
  # PATCH/PUT
41
41
  def update
42
42
  if @blog_post.update(blog_post_params)
43
- redirect_to blog_posts, notice: 'Post was successfully updated.'
43
+ redirect_to blog_posts_path, notice: 'Blog post was successfully updated.'
44
44
  else
45
45
  render :edit
46
46
  end
@@ -49,7 +49,7 @@ module Phcpress
49
49
  # DELETE
50
50
  def destroy
51
51
  @blog_post.destroy
52
- redirect_to blog_posts, notice: 'Post was successfully destroyed.'
52
+ redirect_to blog_posts_path, notice: 'Blog post was successfully destroyed.'
53
53
  end
54
54
 
55
55
  private
@@ -31,7 +31,7 @@ module Phcpress
31
31
  @news_post = News::Post.new(news_post_params)
32
32
 
33
33
  if @news_post.save
34
- redirect_to news_posts, notice: 'Post was successfully created.'
34
+ redirect_to news_posts_path, notice: 'News post was successfully created.'
35
35
  else
36
36
  render :new
37
37
  end
@@ -40,7 +40,7 @@ module Phcpress
40
40
  # PATCH/PUT
41
41
  def update
42
42
  if @news_post.update(news_post_params)
43
- redirect_to news_posts, notice: 'Post was successfully updated.'
43
+ redirect_to news_posts_path, notice: 'News post was successfully updated.'
44
44
  else
45
45
  render :edit
46
46
  end
@@ -49,7 +49,7 @@ module Phcpress
49
49
  # DELETE
50
50
  def destroy
51
51
  @news_post.destroy
52
- redirect_to news_posts, notice: 'Post was successfully destroyed.'
52
+ redirect_to news_posts_path, notice: 'News post was successfully destroyed.'
53
53
  end
54
54
 
55
55
  private
@@ -1,17 +1,5 @@
1
1
  <%= form_for(@blog_post) do |f| %>
2
2
 
3
- <% if @blog_post.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@blog_post.errors.count, "error") %> prohibited this blog_post from being saved:</h2>
6
-
7
- <ul>
8
- <% @blog_post.errors.full_messages.each do |message| %>
9
- <li><%= message %></li>
10
- <% end %>
11
- </ul>
12
- </div>
13
- <% end %>
14
-
15
3
  <div class="form-group">
16
4
  <label><%= f.label :blogpsttitle, "Title" %></label>
17
5
  <%= f.text_field :blogpsttitle, class: "form-control" %>
@@ -1,5 +1,3 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
1
  <!-- Main Content -->
4
2
  <div class="wrapper wrapper-content">
5
3
  <div class="panel panel-default">
@@ -1,5 +1,3 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
1
  <p>
4
2
  <strong>Blog Title:</strong>
5
3
  <%= @blog_post.blogpsttitle %>
@@ -1,17 +1,5 @@
1
1
  <%= form_for(@news_post) do |f| %>
2
2
 
3
- <% if @news_post.errors.any? %>
4
- <div id="error_explanation">
5
- <h2><%= pluralize(@news_post.errors.count, "error") %> prohibited this news_post from being saved:</h2>
6
-
7
- <ul>
8
- <% @news_post.errors.full_messages.each do |message| %>
9
- <li><%= message %></li>
10
- <% end %>
11
- </ul>
12
- </div>
13
- <% end %>
14
-
15
3
  <div class="form-group">
16
4
  <label><%= f.label :newspsttitle, "Post Name" %></label>
17
5
  <%= f.text_field :newspsttitle, class: "form-control" %>
@@ -1,5 +1,3 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
1
  <!-- Main Content -->
4
2
  <div class="wrapper wrapper-content">
5
3
  <div class="panel panel-default">
@@ -1,5 +1,3 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
1
  <p>
4
2
  <strong>Newspsttitle:</strong>
5
3
  <%= @news_post.newspsttitle %>
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "0.2.1b"
2
+ VERSION = "0.3.1b"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1b
4
+ version: 0.3.1b
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts