Hi, I need to create the templates for ROR project , i dont know how to create the tempaltes in rails. can any one help me my giving the clear picture of how to write the templates with examples Thanks& regards meer -- 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 -~----------~----~----~----~------~----~------~--~---
On Oct 24, 2550 BE, at 13:18, Kalimulla Meer wrote:> can any one help me my giving the clear picture of how to write > the > templates with examplesHi! I recommend that you read some basic book about Rails, e.g. Agile Development With Rails 2nd ed. from Pragmatic Programmers or Build Your Own Ruby on Rails Applications that is right now available for free from SitePoint. Alternatively, you can run script/generate scaffold YourModelName and look into your app/views folder for a hint about what Rails templates are. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Kalimulla Meer wrote:> Hi, > > I need to create the templates for ROR project , i dont know how > to create the tempaltes in rails. > > can any one help me my giving the clear picture of how to write the > templates with examples > > Thanks& regards > meerHI Templates are actually views. you can have write temoplates in many forms like rhtml,xml etc. I hope you know how to generate a controller then inside the controller write like following code def list end then in views create a rhtml file with name "list" then add any html code or simply type anything inside that file. then when you run this you can see the text typed on page. You can have good templates as you advance and use good html code. Good Luck -- 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 -~----------~----~----~----~------~----~------~--~---
Hi abhi Thanks for u hints, i need to know one more thing i.e, presently i have to write custom layouts for ralis projects can u plz suggest me for the same and give me samples regards meer Abhi Manyu wrote:> Kalimulla Meer wrote: >> Hi, >> >> I need to create the templates for ROR project , i dont know how >> to create the tempaltes in rails. >> >> can any one help me my giving the clear picture of how to write the >> templates with examples >> >> Thanks& regards >> meer > > HI > Templates are actually views. you can have write temoplates in many > forms like rhtml,xml etc. > > I hope you know how to generate a controller > > then inside the controller write like following code > def list > > end > then in views create a rhtml file with name "list" then add any > html code or > simply type anything inside that file. then when you run this you can > see the text typed on page. You can have good templates as you advance > and use good html code. > Good Luck-- 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 -~----------~----~----~----~------~----~------~--~---
Hi Thanks for u hints, i need to know one more thing i.e, presently i have to write custom layouts for ralis projects can u plz suggest me for the same and give me samples regards meer Damian Terentiev wrote:> On Oct 24, 2550 BE, at 13:18, Kalimulla Meer wrote: >> can any one help me my giving the clear picture of how to write >> the >> templates with examples > > Hi! > I recommend that you read some basic book about Rails, e.g. Agile > Development With Rails 2nd ed. from Pragmatic Programmers or Build > Your Own Ruby on Rails Applications that is right now available for > free from SitePoint. > Alternatively, you can run script/generate scaffold YourModelName and > look into your app/views folder for a hint about what Rails templates > are.-- 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 -~----------~----~----~----~------~----~------~--~---
If you''re asking how to combine layouts and templates, have a look at this article http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in- ruby-on-rails/ and recently I saw this screencast which is a nice short overview on lyaouts too http://www.railscasts.com/episodes/7 -- gw On Oct 24, 2007, at 4:40 AM, Kalim Meer wrote:> Hi abhi > Thanks for u hints, > i need to know one more thing i.e, presently i have to write custom > layouts for ralis projects can u plz suggest me for the same and give > me samples > regards > meer > > Abhi Manyu wrote: >> Kalimulla Meer wrote: >>> Hi, >>> >>> I need to create the templates for ROR project , i dont >>> know how >>> to create the tempaltes in rails. >>> >>> can any one help me my giving the clear picture of how to >>> write the >>> templates with examples >>> >>> Thanks& regards >>> meer >> >> HI >> Templates are actually views. you can have write temoplates in many >> forms like rhtml,xml etc. >> >> I hope you know how to generate a controller >> >> then inside the controller write like following code >> def list >> >> end >> then in views create a rhtml file with name "list" then add any >> html code or >> simply type anything inside that file. then when you run this you can >> see the text typed on page. You can have good templates as you >> advance >> and use good html code. >> Good Luck--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---