David White wrote in post #974274:
Could you post your projects controller? Might be able to see if there's
something wrong in there.
David
Here is my projects_controller.rb.....
class ProjectsController < ApplicationController
menu_item :overview
menu_item :activity, :only => :activity
menu_item :roadmap, :only => [:roadmap]
menu_item :files, :only => [:list_files, :add_file]
menu_item :settings, :only => :settings
before_filter :find_project, :except => [ :index, :list, :add, :copy,
:activity,:draganddropsort ]
before_filter :find_optional_project, :only => :activity
before_filter :authorize, :except => [ :index, :list, :add, :copy,
:archive, :unarchive, :destroy, :activity,:draganddropsort ]
before_filter :authorize_global, :only => :add
before_filter :require_admin, :only => [ :copy, :archive, :unarchive,
:destroy ]
accept_key_auth :activity, :index
after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do
controller>
if controller.request.post?
controller.send :expire_action, :controller => 'welcome', :action
=> 'robots.txt'
end
end
helper :sort
include SortHelper
helper :custom_fields
include CustomFieldsHelper
helper :issues
helper :queries
include QueriesHelper
helper :repositories
include RepositoriesHelper
include ProjectsHelper
# Lists visible projects
def index
....
end
# Add a new project
def add
....
end
...............
....................
def draganddropsort
#@issue = Issue.find_by_id(params["1479"])
@issues = Issue.find(params[:issue_list])
@issues.each do |issue|
#issue.custom_field_values.value = params['issue-list'
].index(issue.id.to_s) + 1
issue.subject = "test"
issue.save
end
render :nothing => true
end
end
Thanks
Anju