# How to embed ruby code

**URL:** <https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794>\
**Category:** Rails\
**Created:** [July 18, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794 "2010-07-18T23:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 18, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794/1 "2010-07-18T23:50:34Z")

</div>

I am very much a novice learning ruby code right now. I already know  
how to write the code and open it in a command prompt. My question is  
how do I embed it into an html document? how do I use rails? Im not  
sure where to go from here. I’ve been reading tutorials but havent  
found any clear direction. Can someone please steer me in the right  
place…

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 18, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794/2 "2010-07-18T23:55:14Z")

</div>

On Jul 18, 10:28 pm, Rich d [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am very much a novice learning ruby code right now. I already know  
> how to write the code and open it in a command prompt. My question is  
> how do I embed it into an html document? how do I use rails? Im not  
> sure where to go from here. I’ve been reading tutorials but havent  
> found any clear direction. Can someone please steer me in the right  
> place…

I’d take a look at [Getting Started with Rails — Ruby on Rails Guides](http://guides.rubyonrails.org/getting_started.html)

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 19, 2010, 2:06am UTC](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794/3 "2010-07-19T02:06:22Z")

</div>

[railstutorial.org](http://railstutorial.org) by Michael H. is a wonderful resource.

On Jul 18, 2:54 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
