S
Saravanankumar Saravanan
Hi,
Please, Any body have, rhtml tutorials/urls to study.
Or
Where I can get it?
Thanks
Please, Any body have, rhtml tutorials/urls to study.
Or
Where I can get it?
Thanks
Saravanankumar said:Hi,
Please, Any body have, rhtml tutorials/urls to study.
Or
Where I can get it?
Thanks
Please, Any body have, rhtml tutorials/urls to study.
Saravanankumar said:Hi,
Please, Any body have, rhtml tutorials/urls to study.
Or
Where I can get it?
Thanks
Ilan said:Saravanankumar,
There is no magic for rhtml as it's simply ruby embedded within html.
Just pick up a good book on html and css to which there are thousands
and you will be all set..
hope this helps
ilan
Saravanankumar said:Yeah.
I understood, about "ruby embedded html".
Thank U for ur reply.
yeah rhtml is just html the r part of it is just there to tell rails
that the name of the rhtml file is the name of an action.
You could use eRuby with any .extension
In fact you could serve web pages with any or no dot extension.
The key is that the server knows what to do with it.
An example is Apache. You tell Apache what to do with files of
various extensions. You could tell it to parse all .html files with
Ruby, or all .php files with Perl.
Thus, many rails pages show URL/URI with no dot extension at all in
the web browser. It is important only if you use multiple language
interpreters or your web application framework requires it.
Read the whole post again and notice the part above.That's not entirely true; if you're using eRb with Rails, it requires
that templates end in rhtml or erb. Otherwise, you could coceivably
use it without an extension.
--Jeremy
You could use eRuby with any .extension
In fact you could serve web pages with any or no dot extension.
The key is that the server knows what to do with it.
An example is Apache. You tell Apache what to do with files of
various extensions. You could tell it to parse all .html files with
Ruby, or all .php files with Perl.
Thus, many rails pages show URL/URI with no dot extension at all in
the web browser. It is important only if you use multiple language
interpreters or your web application framework requires it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.