Revision 430:948400933de8 vendor/plugins/redmine_bibliography/app/controllers
| vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb | ||
|---|---|---|
| 54 | 54 |
|
| 55 | 55 |
def edit |
| 56 | 56 |
@publication = Publication.find(params[:id]) |
| 57 |
end |
|
| 58 |
|
|
| 59 |
def update |
|
| 60 |
|
|
| 61 |
logger.error "------>>>> NO UPDATE" |
|
| 62 |
|
|
| 63 |
@publication = Publication.find(params[:id]) |
|
| 64 |
|
|
| 65 |
logger.error @publication |
|
| 66 |
|
|
| 67 |
if @publication.update_attributes(params[:publication]) |
|
| 68 |
flash[:notice] = "Successfully updated Publication." |
|
| 69 |
redirect_to :action => :show, :id => @publication.id |
|
| 70 |
else |
|
| 71 |
render :action => 'edit' |
|
| 72 |
end |
|
| 57 | 73 |
|
| 58 | 74 |
end |
| 59 | 75 |
|
| 60 |
def update |
|
| 61 |
@publication = Publication.find(params[:id]) |
|
| 62 |
if @publication.update_attributes(params[:publication]) |
|
| 63 |
flash[:notice] = "Successfully updated Publication." |
|
| 64 |
redirect_to @publication |
|
| 65 |
else |
|
| 66 |
render :action => 'edit' |
|
| 67 |
end |
|
| 68 |
end |
|
| 69 |
|
|
| 70 | 76 |
def show |
| 77 |
logger.error "-------> No Show" |
|
| 78 |
|
|
| 71 | 79 |
@publication = Publication.find(params[:id]) |
| 72 | 80 |
|
| 73 | 81 |
if @publication.nil? |
Also available in: Unified diff