diff options
Diffstat (limited to 'app/controllers/members_controller.rb')
-rw-r--r-- | app/controllers/members_controller.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index ca5002af8..111cabc3d 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -17,9 +17,9 @@ class MembersController < ApplicationController model_object Member - before_filter :find_model_object, :except => [:index, :create, :autocomplete] - before_filter :find_project_from_association, :except => [:index, :create, :autocomplete] - before_filter :find_project_by_project_id, :only => [:index, :create, :autocomplete] + before_filter :find_model_object, :except => [:index, :new, :create, :autocomplete] + before_filter :find_project_from_association, :except => [:index, :new, :create, :autocomplete] + before_filter :find_project_by_project_id, :only => [:index, :new, :create, :autocomplete] before_filter :authorize accept_api_auth :index, :show, :create, :update, :destroy @@ -46,6 +46,10 @@ class MembersController < ApplicationController end end + def new + @member = Member.new + end + def create members = [] if params[:membership] |