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.