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 .
grunk
December 14, 2010, 4:16pm
2
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]
grunk
December 14, 2010, 4:46pm
3
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 .
grunk
December 14, 2010, 5:11pm
4
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 .
Best,
Marnen Laibow-koser
http://www.marnen.org
[email protected]