Mercurial > hg > soundsoftware-site
view vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 405:8a105a53b8f4 feature_36
Refactoring.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 13 Apr 2011 18:16:45 +0100 |
parents | 216a61338322 |
children | 40144aa9dfe7 |
line wrap: on
line source
# vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb class PublicationsController < ApplicationController def new # we always try to create at least one publication @publication = Publication.new # the step we're at in the form @publication.current_step = session[:publication_step] end def create @publication = Publication.new(params[:publication]) @publication.current_step = session[:publication_step] # contents of the paste text area bibtex_entry = params[:bibtex_entry] # debug message logger.error bibtex_entry # method for creating "pasted" bibtex entries if bibtex_entry parse_bibtex_text bibtex_entry end # form's flow control if params[:back_button] @publication.previous_step else @publication.next_step end session[:publication_step] = @publication.current_step render "new" 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