Appeler le resultat d une page rails dans du html

bonjour

j ai une controller du nom new_user qui à un formulaire html, je cherche
à faire apparaitre le formulaire de ce controller dans mon index
principale .

danc mon index.html
jai ajouter le lien du controller new_user comme ceci

<%= link_to “Connexion”, :controller => “users”, :action => “new” -%>

plus loin dans la page j ai ajouter un div pour que le résultât
apparaisse dans le div

<%= yield :layout %>

  </div>

mais voila cela ne fonctionne pas il doit je suis sur me manquer un truc
simple pour que cela puisse fonctionner .

Olivier Oliv wrote in post #968302:

bonjour

Bonjour ! On parle anglais en cette liste ; peut-être tu veux la liste
Rails française à http://www.ruby-forum.com/forum/9 ?

j ai une controller du nom new_user qui à un formulaire html, je cherche
à faire apparaitre le formulaire de ce controller dans mon index
principale .

danc mon index.html
jai ajouter le lien du controller new_user comme ceci

<%= link_to “Connexion”, :controller => “users”, :action => “new” -%>

plus loin dans la page j ai ajouter un div pour que le résultât
apparaisse dans le div

<%= yield :layout %>

  </div>

mais voila cela ne fonctionne pas il doit je suis sur me manquer un truc
simple pour que cela puisse fonctionner .

This looks OK. What error message are you getting, or what is happening
that you don’t expect?

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

oh sorry
I’m trying to get dynamic page .
i would like the result of my controller new_user, display between my
div in index.html, and not in a new page .

sorry for the mistakes . :slight_smile:

Please quote when replying.

Olivier Oliv wrote in post #968312:

oh sorry
I’m trying to get dynamic page .
i would like the result of my controller new_user, display between my
div in index.html, and not in a new page .

Oh, so you’d like the action to update the existing page? For that,
you’ll need to use Ajax.

sorry for the mistakes . :slight_smile:

Best,

Marnen Laibow-koser
http://www.marnen.org
[email protected]