- page_part not including items_helper
  - categories for bulletins front-end
This commit is contained in:
chris 2012-11-15 18:01:49 +08:00
parent 112f7000a0
commit fb74d74c72
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ class Admin::PagePartsController < ApplicationController
before_filter :authenticate_user! before_filter :authenticate_user!
before_filter :is_admin? before_filter :is_admin?
before_filter :set_current_item before_filter :set_current_item
helper 'admin/items'
def show def show
@part = PagePart.find(params[:id]) @part = PagePart.find(params[:id])

View File

@ -270,7 +270,7 @@
<% @bulletins.each do |post| %> <% @bulletins.each do |post| %>
<tr> <tr>
<td><%= post.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td> <td><%= post.bulletin_category.title rescue nil %></td>
<td><%= link_to post.title, panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %> <td><%= link_to post.title, panel_announcement_front_end_bulletin_path(post, :category_id => post.bulletin_category_id) %>
<%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %> <%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %>
</td> </td>