```ruby
class TopicsController < ApplicationController

	def index
	end

	def feed
	end

	def new
    @topic = Topic.new
	end

	def create
    @topic = Topic.new(topic_params)
    @topic.user_id = current_user.id
    @topic.node_id = params[:node] || topic_params[:node_id]
    if @topic.save
      redirect_to(topic_path(@topic.id), notice: "Topic created successfully.")
    else
      render action: :new
    end
	end

	def edit
	end

	def update
	end

	def destroy
	end

	def preview
	end

	def recent
	end

	def excellent
	end

	%W(no_reply popular).each do |name|
		define_method(name) do
		end
	end

	def node
	end

	def follow
	end

	def unfollow
	end

	def favorite
	end

	def unfavorite
	end

	def suggest
	end

	def unsuggest
	end

  private

  def topic_params
  	params.require(:topic).permit(:title, :body, :node_id)
  end
end
```

Add the method for admin to suggest or unsuggest the topics.
user
```ruby
class TopicsController < ApplicationController

	def index
	end

	def feed
	end

	def new
    @topic = Topic.new
	end

	def create
    @topic = Topic.new(topic_params)
    @topic.user_id = current_user.id
    @topic.node_id = params[:node] || topic_params[:node_id]
    if @topic.save
      redirect_to(topic_path(@topic.id), notice: "Topic created successfully.")
    else
      render action: :new
    end
	end

	def edit
	end

	def update
	end

	def destroy
	end

	def preview
	end

	def recent
	end

	def excellent
	end

	%W(no_reply popular).each do |name|
		define_method(name) do
		end
	end

	def node
	end

	def follow
	end

	def unfollow
	end

	def favorite
    current_user.favorite_topic(params[:id])
    render text: '1'
	end

	def unfavorite
    current_user.unfavorite_topic(params[:id])
    render text: '1'
	end

	def suggest
    @topic = Topic.find(params[:id])
    @topic.update_attributes(excellent: 1)
    redirect_to @topic, success: 'Suggest successfully.'
	end

	def unsuggest
    @topic = Topic.find(params[:id])
    @topic.update_attributes(excellent: 0)
    redirect_to @topic, success: 'Unsuggest successfully.'
	end

  private

  def topic_params
  	params.require(:topic).permit(:title, :body, :node_id)
  end
end
```
assistant