diff --git a/app/models/project.rb b/app/models/project.rb index c10b95496..23f3e9558 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -351,10 +351,10 @@ class Project < ActiveRecord::Base base_reload(*args) end - def to_param - # id is used for projects with a numeric identifier (compatibility) - @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier) - end + # def to_param + # # id is used for projects with a numeric identifier (compatibility) + # @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier) + # end def active? self.status == STATUS_ACTIVE diff --git a/app/views/layouts/base_bids.html.erb b/app/views/layouts/base_bids.html.erb index 435d34c1b..1b1f22eb2 100644 --- a/app/views/layouts/base_bids.html.erb +++ b/app/views/layouts/base_bids.html.erb @@ -47,8 +47,9 @@ - http://forge.trustie.net/calls - <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> > <%=link_to @bid.name ,bid_path %> + <%= link_to "http://forge.trustie.net/calls", :controller => 'bids', :action => 'index' %> + <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> > + <%=link_to @bid.name ,bid_path %> diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index c66ddebe3..ba6483585 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -29,7 +29,7 @@ - forge.trustie.net/courses + <%= link_to "forge.trustie.net/courses", :controller => 'projects', :action => 'course'%> <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'course' %> > <%= link_to(@bid.courses.first.name.slice(0..6), project_path(@bid.courses.first)) %> > <%=link_to(@bid.name, respond_path(@bid))%> diff --git a/config/routes.rb b/config/routes.rb index 049f8ebf8..b505c3e66 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -133,7 +133,7 @@ RedmineApp::Application.routes.draw do post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue' delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue' - resources :bids, :only=>[:edit,:update] + resources :bids, :only=>[:edit,:update,:show] resources :projects do member do get 'settings(/:tab)', :action => 'settings', :as => 'settings'