In my controller I have
def update_project_dates
p "It is end date....."
@user=User.find(params[:user])
@projects=Project.find_all_by_user_id(@user)
end
In the view page (only some part of the code is copied and pasted)
eventDrop: function()
{
$.ajax({
url:''/update_project_dates/'',
success:function(data)
{
alert("Hello");
}
})
},
In my routes.rb I have mentioned
match
''/update_project_dates''=>''users#update_project_dates'',:method=>:get
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..
--
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.