So I was wandering if there is an equivalent to <%= in a Ruby on Rails view using <% and %>.
PHP allows the use of <?=$str ?> and <? echo $str ?>, do views in RoR allow something like this? Doing <%= in a large block of Ruby On Rails code in a view isn’t very nice to see, not to mention a nuisance when doing something like for loops. Is it possible?
That isn’t Ruby On Rails construction, that’s construction of ERB template engine. If you like, you can use haml or any other template engine. This is rather old, but interesting review many of them.