Welcome Guest | Login

Ajax not working (link_to_remote)

My app is working pretty much the way it is on my home machine except for some ajax stuff.

I have a link_to_remote link like this


<%= link_to_remote 'login', :url => {:action => 'login', :id => 'login-form'} %>

the routing is working (checked in rails console) but it should be filling a div with a bit of html through this function

 def login
   render :update do |page|
     page.insert_html :bottom, params[:id], :partial => 'login'
     page.replace_html 'login', ''
   end
 end

the params[:id] is 'login-form' which is the div that needs to be filled.

I have no idea why this is failing.  When I click the login link I just get a # after my site name.

2007-09-29 12:52 AM

It was a permission problem with all the .js files in my javascript folder.

2007-09-29 11:02 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.