[Rails] Re: ActionController::UnknownAction

2011-01-16 Thread Anju P s
I resolved the issue It was a PEBKAC, accidentally I defined my method under a set of private methods :(. Thanks David David White wrote in post #974243: > The only suggestion I can think of is to check there's no private or > protected call on any of the lines above the method name or to check

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
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 => :activ

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
David White wrote in post #974269: > Whats 1-strfronttech-011 ? > > If you're passing parameters in the url then you'll need to show that in > the > routes sometihng like. > > map.connect 'projects/:your_parameter/draganddropsort, :controller => > 'projects, :action => 'draganddropsort' > > You can

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
when i tried 'http://127.0.0.1:3000/projects/1-strfronttech-011/draganddropsort'in browser, i got Unknown action 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, se

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
David White wrote in post #974243: > The only suggestion I can think of is to check there's no private or > protected call on any of the lines above the method name or to check the > routes file: > > project_actions.connect 'projects/draganddropsort', :action > => 'draganddropsort' > > Where is the

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
Frederick Cheung wrote in post #974232: > On Jan 12, 11:37am, Anju P s wrote: >> yes . i have same method in projects_controller.rb >> > > And it's public? > > Fred I hope by default its public Anju -- Posted via http://www.ruby-forum.com/. -- You recei

[Rails] Re: ActionController::UnknownAction

2011-01-12 Thread Anju P s
yes . i have same method in projects_controller.rb def draganddropsort . end Kannav R. wrote in post #974224: > Do you have that same method in yours projects controller ? > > On Wed, Jan 12, 2011 at 4:14 PM, Anju P s wrote: > >> <%= sortable_element 'iss

[Rails] ActionController::UnknownAction

2011-01-12 Thread Anju P s
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