Hi I m new to RoR. I added a method to an already existing controller. i am calling that method from a view (roadmap). I also added following code in route.rb
project_actions.connect 'projects/draganddropsort', :action => 'draganddropsort' **portionwhere i call my function** <%= sortable_element 'issue-list', :url => {:action => :draganddropsort, :issue_list => issues }, :complete => visual_effect(:highlight, 'issue-list'), :tag => 'tr' %> ******* And im getting the following error; Processing ProjectsController#draganddropsort (for 127.0.0.1 at 2011-01-12 16:03:20) [POST] Parameters: {"issue_list"=>["1477", "1478"], "action"=>"draganddropsort", "authenticity_token"=>"..............=", "id"=>"*********", "issue-list"=>["1478", "1477"], "controller"=>"projects"} ActionController::UnknownAction (No action responded to draganddropsort. Actions: accept_key_auth_actions, activity, add, add_file, api_request?, archive, authorize, authorize_global, bazaar_field_tags, check_if_login_required, check_project_privacy, column_content, column_header, copy, current_language, current_menu_item, custom_field_formats_for_select, custom_field_label_tag, custom_field_tag, custom_field_tag_for_bulk_edit, custom_field_tag_with_label, custom_fields_tabs, cvs_field_tags, darcs_field_tags, day_name, default_search_scope, default_search_scopes, delete_broken_cookies, deny_access, destroy, edit, filename_for_content_disposition, filesystem_field_tags, find_current_user, find_language, find_model_object, find_project, find_project_from_association, format_date, format_revision, format_time, format_value, format_version_sharing, git_field_tags, index, invalid_authenticity_token, l_hours, l_or_humanize, link_to_version, list_files, ll, logged_user=, menu_items, mercurial_field_tags, modules, month_name, object_errors_to_json, operators_for_select, parent_project_select_tag, parse_qvalues, per_page_option, project_settings_tabs, query_statement_invalid, redirect_back_or_default, redirect_to_project_menu_item, render_403, render_404, render_attachment_warning_if_needed, render_changes_tree, render_changeset_changes, render_error, render_feed, render_project_hierarchy, render_properties, repository_field_tags, require_admin, require_login, reset_activities, retrieve_query, roadmap, save_activities, scm_select_tag, set_language_if_valid, set_localization, settings, show, show_value, sort_clause, sort_clear, sort_header_tag, sort_init, sort_link, sort_name, sort_update, subversion_field_tags, to_utf8, truncate_at_line_break, unarchive, user_setup, valid_languages, version_options_for_select, with_leading_slash, and without_leading_slash): /usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters' /usr/lib/ruby/1.8/action_controller/filters.rb:610:in `perform_action_without_benchmark' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/action_controller/rescue.rb:160:in `perform_action_without_flash' /usr/lib/ruby/1.8/action_controller/flash.rb:146:in `perform_action' /usr/lib/ruby/1.8/action_controller/base.rb:532:in `send' /usr/lib/ruby/1.8/action_controller/base.rb:532:in `process_without_filters' /usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process' /usr/lib/ruby/1.8/action_controller/base.rb:391:in `process' /usr/lib/ruby/1.8/action_controller/base.rb:386:in `call' /usr/lib/ruby/1.8/action_controller/routing/route_set.rb:437:in `call' /usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch' ....................... Kindly help me out ... Thanks in advance Anju -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.