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

Discussion in 'Ruby' started by Alex Stahl, Sep 23, 2010.

  1. Alex Stahl

    Alex Stahl Guest

    This works under 1.8.7:

    get "/" do
    erb :text
    end

    __END__

    @@text
    <div id="test">
    <h1>If you can read this</h1>
    <h3>then we're up & running</h3>
    </div>

    ********************************************

    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
    Alex Stahl, Sep 23, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JKop
    Replies:
    3
    Views:
    467
  2. Steve V
    Replies:
    6
    Views:
    237
    Steve V
    Apr 20, 2005
  3. Ed Howland
    Replies:
    1
    Views:
    129
    Konstantin H.
    Oct 26, 2010
  4. Dan Thomas

    link to .erb file, from .erb file

    Dan Thomas, Jan 26, 2011, in forum: Ruby
    Replies:
    4
    Views:
    165
    Dan Thomas
    Jan 26, 2011
  5. Scott Elwood
    Replies:
    2
    Views:
    266
    Scott Elwood
    May 17, 2011
Loading...

Share This Page