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,
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
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.
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 examplesThanks& 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
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 M. 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 examplesThanks& 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 listend
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
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 T. 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 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.
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
– gw
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs