beef-articles 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/admin/articles_controller.rb +2 -2
- data/app/views/articles/_meta.html.erb +1 -1
- data/beef-articles.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.7
|
@@ -1,11 +1,11 @@
|
|
1
1
|
class Admin::ArticlesController < Admin::BaseController
|
2
2
|
unloadable
|
3
|
-
sortable_attributes :created_at, :published_at, :title, :permalink, :published_to, :body, :description, :allow_comments, :created => 'users.name', :updated => 'updated_bies_articles.name'
|
3
|
+
sortable_attributes :created_at, :published_at, :title, :permalink, :published_to, :body, :description, :allow_comments, :created => 'users.name',:category => 'categories.title', :updated => 'updated_bies_articles.name'
|
4
4
|
|
5
5
|
# GET /articles
|
6
6
|
# GET /articles.xml
|
7
7
|
def index
|
8
|
-
@articles = Article.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'desc'), :include => [:created_by, :updated_by]
|
8
|
+
@articles = Article.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'desc'), :include => [:created_by, :updated_by, :category]
|
9
9
|
|
10
10
|
respond_to do |format|
|
11
11
|
format.html # index.html.erb
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<p class="post-meta">
|
2
|
-
Posted by <%= article.author %> on <%= article.published_at.to_formatted_s(:short_dot) %>
|
2
|
+
Posted by <%= article.author %> on <%= article.published_at.to_formatted_s(:short_dot) %> by <%= link_to article.author, articles_authored_path(article.updated_by.permalink) %>
|
3
3
|
</p>
|
data/beef-articles.gemspec
CHANGED