# Using ERB inline templates w/ Sinatra on 1.9.2-p0 broken?

**URL:** <https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418>\
**Category:** Ruby\
**Created:** [September 23, 2010, 1:15am UTC](https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418 "2010-09-23T01:15:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@asoto](https://www.ruby-forum.com/u/asoto)\
**Post date:** [September 23, 2010, 1:15am UTC](https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418/1 "2010-09-23T01:15:22Z")

</div>

This works under 1.8.7:

get “/” do  
erb :text  
end

**END**

@@text

# If you can read this

### then we're up & running

* * *

But running it under 1.9.2-p0 results in this error:

No such file or directory

- /home/ubuntu/load/\<internal:lib/rubygems/views/text.erb

Already read through previous posts on Sinatra + 1.9.2 issues, checked  
google, and didn’t find much in either. Did find some suggestions that  
I manually set the :view path, but that’s for external, not inline,  
templates. Any suggestions?

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![asoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@asoto](https://www.ruby-forum.com/u/asoto)\
**Post date:** [September 23, 2010, 9:11am UTC](https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418/2 "2010-09-23T09:11:42Z")

</div>

On 2010-09-22, Alex S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> But running it under 1.9.2-p0 results in this error:
> 
> No such file or directory
> 
> - /home/ubuntu/load/\<internal:lib/rubygems/views/text.erb

This bit me too. I think it is another side-effect of the issues  
discussed here:

```
http://github.com/sinatra/sinatra/issues/issue/50

```

My suggestion: set the views path manually for now and hope that this  
is fixed in the next release of Sinatra (due real soon now  
apparently).

Regards,

Jeremy H.
