From: Dan Thomas Date: 2011-01-27T06:26:34+09:00 Subject: Re: link to .erb file, from .erb file Marvin Gülker wrote in post #977698: > Am 26.01.2011 20:13, schrieb Dan Thomas: >> >> >> sinatra/base is required in that file. index.erb is located in my views >> folder. Then, as stated above, from that index.erb, I need to load >> something like a "branding.erb" page if the user clicks a link. Thanks >> > > This has nothing to do with the view, but how your Sinatra app processes > the requests it receives. Add this to your App class: > > ----------------------------------------------- > get "/branding" do > erb :branding > end > ----------------------------------------------- > > Assuming you want to link to /branding. In your view, you can then just > link to it via Ahh, I was starting to head in that direction but not quite getting it. Your post helped a ton. Thank you, Marvin!! -- Posted via http://www.ruby-forum.com/.