tags:

views:

54

answers:

3

in php possible to made this:

<input type="text" value=" <?php echo "Hello world"; ?> ">

It's possible to embed ruby in html like that with or without Rails?

+3  A: 

You will need to use a templating engine like Ruby Templates (ERB). Here's an example. Rails uses ERB so you could easily do this in each of your templates.

Darin Dimitrov
A: 

Rails has something called ERB to do just this sort of thing.

Manoj Govindan
A: 

Use HAML for HTML templating, otherwise ERB.

Tass