I''m a newbie. I want to build my own control (like User Control in ASP.NET), but I don''t know how... Thank you for your help! -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think helpers and partials are the closest analogues to asp.net''s controls. Gratuitous extra advice: don''t make the mistake of trying to write asp.net style code in rails--try and get your head around MVC, and the various rails conventions/idioms, and see if you like it. -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Ho Bq Sent: Monday, May 05, 2008 12:58 AM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] How can I build my own control ? I''m a newbie. I want to build my own control (like User Control in ASP.NET), but I don''t know how... Thank you for your help! -- 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
+1. A "User Control" in rails is a mix of partials and helpers. On May 5, 3:08 pm, "Pardee, Roy" <parde...-go57ItdSaco@public.gmane.org> wrote:> I think helpers and partials are the closest analogues to asp.net''s > controls. > > Gratuitous extra advice: don''t make the mistake of trying to write > asp.net style code in rails--try and get your head around MVC, and the > various rails conventions/idioms, and see if you like it. > > -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Ho Bq > Sent: Monday, May 05, 2008 12:58 AM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails] How can I build my own control ? > > I''m a newbie. > > I want to build my own control (like User Control in ASP.NET), but I > don''t know how... > > Thank you for your help! > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
Roy Pardee wrote:> I think helpers and partials are the closest analogues to asp.net''s > controls. > > Gratuitous extra advice: don''t make the mistake of trying to write > asp.net style code in rails--try and get your head around MVC, and the > various rails conventions/idioms, and see if you like it.Thank you, Roy Pardee ! -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---