phcscriptcdnpro 1.6.0 → 1.6.1

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: 5a049b7e6a33f035bb68767bfa5303d5f47ed596
4
- data.tar.gz: 6cac4796712c42b6bda1b2fd7951ace5a38a8475
3
+ metadata.gz: 884c0891bd5807b5ee7758048a3ab74781b300a1
4
+ data.tar.gz: 66ca868f52a84dace99030a76344b16a544ac3fb
5
5
  SHA512:
6
- metadata.gz: 44cbca406cf984e2d7f0313204c5bb0573a0424f530b83d89614a5af8b9896e9e432ac4d337666ecb9e1a9adf9f0c158307c757dbb02adc29c7dc9bc24665651
7
- data.tar.gz: 3acc856d70324b7de05dbcf927212ecbeebd33697734e98f35e48dfdbfe5e0b9ef222238527c4271d485d585bb02bb9fb06fba53e33ee4ad71081cc8166c9aec
6
+ metadata.gz: 781626642db3105e959db8c4127d01c716cc8a9f67dbec85328b362ff19d6c1d40ca0fa62cb6e0c3769433f1b01b065e96080bb05352ddc54d56c4306d6fae7c
7
+ data.tar.gz: 53cfe8a7e86238ca3642b6821cc8ed359edd08fc163e1784f38269f72a58b3b2587145d8b3ce627e8c06829075f464751661d9b755b90fdd3a18b0c6c0bd0235
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
31
31
  @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
32
32
  @scriptcdn_author = @scriptcdn_main.authors.create(scriptcdn_author_params)
33
33
  if @scriptcdn_author.save
34
- redirect_to @scriptcdn_author, notice: 'Author was successfully created.'
34
+ redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully created.'
35
35
  else
36
36
  render :new
37
37
  end
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
40
40
  # PATCH/PUT Author
41
41
  def update
42
42
  if @scriptcdn_author.update(scriptcdn_author_params)
43
- redirect_to @scriptcdn_author, notice: 'Author was successfully updated.'
43
+ redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully updated.'
44
44
  else
45
45
  render :edit
46
46
  end
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
51
51
  @scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
52
52
  @scriptcdn_author = @scriptcdn_main.authors.find(params[:id])
53
53
  @scriptcdn_author.destroy
54
- redirect_to scriptcdn_authors_url, notice: 'Author was successfully destroyed.'
54
+ redirect_to scriptcdn_main_authors_url, notice: 'Author was successfully destroyed.'
55
55
  end
56
56
 
57
57
  private
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
  # Index for Script URL
12
12
  def index
13
13
  scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
14
- @scriptcdn_scripturls = scriptcdn_main.urls
14
+ @scriptcdn_urls = scriptcdn_main.urls
15
15
  end
16
16
 
17
17
  # New Script URL
@@ -6,7 +6,7 @@
6
6
  <div class="page-bar">
7
7
 
8
8
  <ul class="page-breadcrumb">
9
- <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_mains_author_path %><i class="fa fa-circle"></i></li>
9
+ <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_main_authors_path %><i class="fa fa-circle"></i></li>
10
10
  <li class="active"><%= yield(:phc_title_tagline) %></li>
11
11
  </ul>
12
12
 
@@ -48,8 +48,8 @@
48
48
  <tbody>
49
49
  <% @scriptcdn_authors.each do |scriptcdn_author| %>
50
50
  <tr>
51
- <td><%= scriptcdn_author.firstname %></td>
52
- <td><%= scriptcdn_author.lastname %></td>
51
+ <td><%= scriptcdn_author.authorfirstname %></td>
52
+ <td><%= scriptcdn_author.authorlastname %></td>
53
53
  </tr>
54
54
  <% end %>
55
55
  </tbody>
@@ -6,7 +6,7 @@
6
6
  <div class="page-bar">
7
7
 
8
8
  <ul class="page-breadcrumb">
9
- <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_mains_author_path %><i class="fa fa-circle"></i></li>
9
+ <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_main_authors_path %><i class="fa fa-circle"></i></li>
10
10
  <li class="active"><%= yield(:phc_title_tagline) %></li>
11
11
  </ul>
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts