# Trying to upgrade a rails app from 2.3.2 to 2.3.11

**URL:** <https://www.ruby-forum.com/t/trying-to-upgrade-a-rails-app-from-2-3-2-to-2-3-11/208904>\
**Category:** Rails\
**Created:** [June 30, 2011, 4:31am UTC](https://www.ruby-forum.com/t/trying-to-upgrade-a-rails-app-from-2-3-2-to-2-3-11/208904 "2011-06-30T04:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 30, 2011, 4:31am UTC](https://www.ruby-forum.com/t/trying-to-upgrade-a-rails-app-from-2-3-2-to-2-3-11/208904/1 "2011-06-30T04:31:21Z")

</div>

Hi,  
I’m trying to upgrade a rails app to 2.3.11 (from 2.3.2) and I’m  
seeing some odd behavior.  
I have a link\_to\_remote call that works in 2.3.2 but not in anything  
above that. What I mean by not working is that in my controller I  
have a new method that I want to handle a javascript new call and pop  
up a form for creating a new user. To get this I have a page with a  
link to remote like so:

link\_to\_remote(image\_tag(‘adduser.gif’, :border =\> “0”),  
:url =\> new\_users\_path(:id =\> @reader.journal\_id), :method  
=\> :get)

in my controller I have a new method such as:

def new  
@user = User.new  
respond\_to do |wants|  
wants.js  
end  
end

and a new.rjs.js with something like:  
page.replace\_html(“add\_user\_window”,:partial =\>  
‘new\_user\_win.html.erb’)  
page.show(“add\_user\_window”)

This works fine in 2.3.2. Trying to upgrade to anything beyond 2.3.2  
and the clicking of link to remote doesn’t “register” with the  
controller as being a JS call and I get an error saying it can’t find  
a new.html.erb template. I’ve changed no other code than to upgrade  
rails.

Has anyone seen anything like this? I’ve been trying to read all the  
upgrade notes I can get my hands on. I guess I’m looking for ideas,  
pointers, suggestions, anything…

Thanks!  
Jay

---

<div class="post-metadata">

**Author:** ![jay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@jay](https://www.ruby-forum.com/u/jay)\
**Post date:** [June 30, 2011, 5:52am UTC](https://www.ruby-forum.com/t/trying-to-upgrade-a-rails-app-from-2-3-2-to-2-3-11/208904/2 "2011-06-30T05:52:10Z")

</div>

Rename your template from new.rjs.js to new.js.rjs and it should work

---

<div class="post-metadata">

**Author:** ![jay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@jay](https://www.ruby-forum.com/u/jay)\
**Post date:** [July 1, 2011, 3:33am UTC](https://www.ruby-forum.com/t/trying-to-upgrade-a-rails-app-from-2-3-2-to-2-3-11/208904/3 "2011-07-01T03:33:12Z")

</div>

thanks man!  
I’m going to try that right now… that makes a bunch of sense. I  
appreciate you taking the time to respond.
