I followed tutorials and changed my Rails app to use jQuery. All the needed files are in place, but ajax isn''t working. I have the format.js in the correct place and the js.erb file named after the action. Calling stuff from application.js works, and I do have remote => true in the link. When I try and run it it just does nothing, and in the log it seems like it''s running the format.html instead of the format.js. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, try out FireBug http://getfirebug.com/ for FireFox or FireBub Lite http://getfirebug.com/firebuglite for Chrome. You can see if you made any JavaScript syntax mistake. Also give a try for Selenium http://seleniumhq.org/projects/ide/ After "rails server" when you check the workflow on your Rails app always check back to console after every click on the site. There will be warning message if you put your files to wrong place or named them incorrectly etc. Hope this helped. Good luck, Zoli On jan. 2, 02:33, Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I followed tutorials and changed my Rails app to use jQuery. All the > needed files are in place, but ajax isn''t working. I have the > format.js in the correct place and the js.erb file named after the > action. Calling stuff from application.js works, and I do have remote > => true in the link. When I try and run it it just does nothing, and > in the log it seems like it''s running the format.html instead of the > format.js.-- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
One more thing: check your versions, the tutorial has to be the same like your local Ruby and Rails versions. bests On jan. 2, 02:33, Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I followed tutorials and changed my Rails app to use jQuery. All the > needed files are in place, but ajax isn''t working. I have the > format.js in the correct place and the js.erb file named after the > action. Calling stuff from application.js works, and I do have remote > => true in the link. When I try and run it it just does nothing, and > in the log it seems like it''s running the format.html instead of the > format.js.-- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sent from my iPhone On Jan 1, 2011, at 5:33 PM, Mike C <snibble-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I followed tutorials and changed my Rails app to use jQuery. All the > needed files are in place, but ajax isn''t working. I have the > format.js in the correct place and the js.erb file named after the > action. Calling stuff from application.js works, and I do have remote > => true in the link. When I try and run it it just does nothing, and > in the log it seems like it''s running the format.html instead of the > format.js. >Hey, can you please post the relevant controller and view template code? This would us to better assist you. -Conrad> -- > 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.