Mercurial > hg > soundsoftware-site
comparison app/controllers/boards_controller.rb @ 929:5f33065ddc4b redmine-1.3
Update to Redmine SVN rev 9414 on 1.3-stable branch
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2012 14:54:18 +0100 |
parents | cbb26bc654de |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
909:cbb26bc654de | 929:5f33065ddc4b |
---|---|
63 end | 63 end |
64 | 64 |
65 verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } | 65 verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } |
66 | 66 |
67 def new | 67 def new |
68 @board = Board.new(params[:board]) | 68 @board = Board.new |
69 @board.safe_attributes = params[:board] | |
69 @board.project = @project | 70 @board.project = @project |
70 if request.post? && @board.save | 71 if request.post? && @board.save |
71 flash[:notice] = l(:notice_successful_create) | 72 flash[:notice] = l(:notice_successful_create) |
72 redirect_to_settings_in_projects | 73 redirect_to_settings_in_projects |
73 end | 74 end |
74 end | 75 end |
75 | 76 |
76 def edit | 77 def edit |
77 if request.post? && @board.update_attributes(params[:board]) | 78 @board.safe_attributes = params[:board] |
79 if request.post? && @board.save | |
78 redirect_to_settings_in_projects | 80 redirect_to_settings_in_projects |
79 end | 81 end |
80 end | 82 end |
81 | 83 |
82 def destroy | 84 def destroy |