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 <div id="content"> <%= yield :layout %> </div> mais voila cela ne fonctionne pas il doit je suis sur me manquer un truc simple pour que cela puisse fonctionner . -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-14 15:16 UTC
Re: appeler le resultat d une page rails dans du html
Olivier Oliv wrote in post #968302:> bonjourBonjour ! 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 > > <div id="content"> > > <%= 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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 . :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-14 16:11 UTC
Re: appeler le resultat d une page rails dans du html
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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.