Mercurial > hg > soundsoftware-site
changeset 1245:d8e15cc24494 redmine-2.2-integration
fixed the project _overview form_for (had one extra parameter); created route for a project's settings.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 27 Mar 2013 15:37:47 +0000 |
parents | a3ed5c4d90f0 |
children | d375687d09b5 |
files | app/views/projects/settings/_overview.html.erb config/routes.rb |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/projects/settings/_overview.html.erb Wed Mar 27 14:52:16 2013 +0000 +++ b/app/views/projects/settings/_overview.html.erb Wed Mar 27 15:37:47 2013 +0000 @@ -1,6 +1,6 @@ -<% form_for :project, @project, - :url => { :action => 'overview', :id => @project }, +<%= form_for @project, + :url => { :action => 'overview', :id => @project.id }, :html => {:id => 'overview-form'} do |f| %> <div class="box tabular">
--- a/config/routes.rb Wed Mar 27 14:52:16 2013 +0000 +++ b/config/routes.rb Wed Mar 27 15:37:47 2013 +0000 @@ -86,6 +86,7 @@ match 'watchers/autocomplete_for_user', :controller=> 'watchers', :action => 'autocomplete_for_user', :via => :get match 'projects/:id/settings/:tab', :to => "projects#settings" + match 'projects/:id/overview', :to => "projects#overview" resources :projects do member do