view vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 376:ad71d0604ac2 feature_36

controller now saving; menus not working; permissions can be set by admins
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 31 Mar 2011 18:59:07 +0100
parents d750431a4102
children 4be6b16bc6f9
line wrap: on
line source
class PublicationsController < ApplicationController

  def new
    
    @publication = Publication.new(params[:publication])
    
    if @publication.save
      logger.error "GRAVOU XXXdsfgXXX"
    else
      logger.error "nao gravou"
    end
    
  end

  def create
    
    logger.error "AAAA create"
    
    @publication.save
  end

  def index
    @publications = Publication.find(:all)
  end

  def edit
        logger.error "AAAA edit"

  end

  def update
    
        logger.error "AAAA update"


  end

  def show  
    @publication = Publication.find(params[id])
    @authors = @publication.authors
  end


end