beef-articles 0.4.15 → 0.4.16

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.15
1
+ 0.4.16
@@ -25,7 +25,7 @@
25
25
  <tbody>
26
26
  <% @articles.each do |article| %>
27
27
  <tr id="article-<%= article.id %>">
28
- <td><%= link_to h( article.title ), admin_article_path(article), :title => 'Edit this article' %></td>
28
+ <td><%= link_to h( article.title ), [:admin, article], :title => 'Edit this article' %></td>
29
29
  <td><%= content_status(article) %></td>
30
30
  <% if Category.all.any? -%>
31
31
  <td><%=h article.category.title unless article.category.nil? %></td>
@@ -37,9 +37,9 @@
37
37
  <td><%= article.published_at.to_formatted_s(:short) unless article.published_at.nil? %></td>
38
38
  <td><%= article.published_to.to_formatted_s(:short) unless article.published_to.nil? %></td>
39
39
  <td><%= link_to pluralize(article.comments.count, 'Comment'), admin_article_comments_path(article), :title => 'Click to view any comments' %></td>
40
- <td><%= link_to 'Show', article_url(article), :class => 'show', :title => 'View this article' if article.published? %></td>
41
- <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit', :title => 'Edit this article' %></td>
42
- <td><%= link_to 'Delete', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this article' %></td>
40
+ <td><%= link_to 'Show', article, :class => 'show', :title => 'View this article' if article.published? %></td>
41
+ <td><%= link_to 'Edit', [:admin, article], :class => 'edit', :title => 'Edit this article' %></td>
42
+ <td><%= link_to 'Delete', [:admin, article], :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this article' %></td>
43
43
  </tr>
44
44
  <% end %>
45
45
  </tbody>
@@ -27,7 +27,7 @@
27
27
  </p>
28
28
  <% if Category.exists? %>
29
29
  <p>
30
- <%= f.label :category %>
30
+ <%= f.label :category_id %>
31
31
  <%= f.collection_select :category_id, Category.all, :id, :title, :prompt => true %>
32
32
  </p>
33
33
  <% end -%>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-articles}
8
- s.version = "0.4.15"
8
+ s.version = "0.4.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-06-23}
12
+ s.date = %q{2010-06-24}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 15
9
- version: 0.4.15
8
+ - 16
9
+ version: 0.4.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Steve England
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-23 00:00:00 +01:00
17
+ date: 2010-06-24 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency