```ruby
require 'sinatra/base'

class FlickrFakr < Sinatra::Base
  get '/' do
    'Welcome to Flickr Fakr!'
  end

  get '/services/auth/' do
    redirect 'http://localhost:9292/flickr/callback?frob=123'
  end

  post '/services/rest/' do
    view = params[:method]+'.'+params[:format]
    erb view.to_sym
  end
end```

Set the views/ dir explicitly it works when called as a gem from another project
user
```ruby
require 'sinatra/base'

class FlickrFakr < Sinatra::Base
  set :views, File.dirname(__FILE__)+'/views'

  get '/' do
    'Welcome to Flickr Fakr!'
  end

  get '/services/auth/' do
    redirect 'http://localhost:9292/flickr/callback?frob=123'
  end

  post '/services/rest/' do
    view = params[:method]+'.'+params[:format]
    erb view.to_sym
  end
end```
assistant