Routing error in rails

In my controller I have

  def update_project_dates
       p "It is end date....."


In the view page (only some part of the code is copied and pasted)

eventDrop: function()

In my routes.rb I have mentioned

get 'update_project_dates'

But When the ajax request goes, I get the routing error as
<h1>Routing Error</h1>
<p><pre>uninitialized constant UsersController</pre></p>

Where am I doing wrong here...Please help..