class Mybbs::IndexController < ApplicationController
define_page
uses_component_template_root
def main
@all_items = Mybbs::MybbsItem.find_all
end
def post
new_item = Mybbs::MybbsItem.new(@params[:mybbs_item])
new_item.rubricks_user_id = current_user.id
new_item.save
redirect_to :action => 'main'
end
end