# Simple form\_remote\_for issue

**URL:** <https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237>\
**Category:** Rails\
**Created:** [October 15, 2007, 5:32am UTC](https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237 "2007-10-15T05:32:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 15, 2007, 5:32am UTC](https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237/1 "2007-10-15T05:32:13Z")

</div>

Hello Folks, I’m a Rails newbie and I have a form to input new users.  
Below the form I have the list of the users and I would like when a new  
user is inputted, the list is updated. I thought to use form\_remote\_for.

This is my code:

\<% form\_remote\_for :user, :url =\> {:action =\> ‘add\_user’}, :update =\>  
‘userList’ do |form| %\>  
\<%= form.text\_field :name %\>  
\<%= form.text\_field :password %\>  
\<%= submit\_tag “add”%\>  
\<% end %\>

  

\<%= render (:partial =\> "user", :collection =\> @user\_list)%\>

| name | password |
| --- | --- |

where @user\_list is defined within the controller

class UserController \< ApplicationController

# 

def add\_user  
@user\_list = User.find\_for\_display  
…  
end  
end

The problem is that when I try to add a new user the rendered page is  
wrong, I mean several images are in the wrong position and the list is  
not updated.

Where is the mistake ??? THANK YOU

---

<div class="post-metadata">

**Author:** ![macsig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@macsig](https://www.ruby-forum.com/u/macsig)\
**Post date:** [October 18, 2007, 12:08am UTC](https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237/2 "2007-10-18T00:08:29Z")

</div>

got it
