[issue #195] Fixed bug with creating project

This commit is contained in:
George Vinogradov 2012-03-01 17:37:35 +04:00
parent 55ff2c7f6b
commit 6eb239385a
2 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
%h3.bpadding10
= t("layout.projects.new_header")
= form_for [get_owner, @project], :html => { :class => :form, :multipart => true } do |f|
= form_for @project, :html => { :class => :form, :multipart => true } do |f|
= render :partial => "form", :locals => {:f => f}
-# content_for :sidebar, render('sidebar')

View File

@ -94,7 +94,7 @@ Rosa::Application.routes.draw do
resources :categories, :only => [:index, :show]
end
resources :projects do
resources :projects, :except => [:new, :show] do
resources :wiki do
collection do
match '_history' => 'wiki#wiki_history', :as => :history, :via => :get
@ -146,15 +146,17 @@ Rosa::Application.routes.draw do
# resources :groups, :controller => 'project_groups' do
# end
member do
post :fork
get 'show', :controller => 'git/trees', :action => :show, :as => :show
get :sections
post :sections
end
#match 'new' => "projects#new", :as => :new
collection do
get :auto_build
end
member do
post :fork
get :new, :controller => 'projects', :action => 'new', :id => /new/, :as => :new
get :show, :controller => 'git/trees', :action => :show
get :sections
post :sections
end
end
resources :repositories do