This is all very confusing. I've been googling...

I see references to .erb files, .rhtml and .erb.html files. Sounds
like what I want to do can be done, but I don't get the impression its
done very often because it doesn't seem very easy nor straightforward.

There used to be eRuby. But it sounds like you can use the erb module
in Ruby instead.

I've found instructions where you can manually create a ruby script
and a CGI command to run whatever extension you define in an Apache
config file. Its an amazingly manual configuration process.

Does no one do this? Is it Ruby on Rails or bust? Can you use Ruby
template files, ie Ruby embedded in HTML on an Apache webserver or do
most folks just use PHP if this is needed and only use Ruby for web
applications?

Thanks

On Feb 24, 4:34 pm, Frederick Cheung <[email protected]>
wrote:
> On Feb 24, 9:24 pm, david2 <[email protected]> wrote:
>
> > I went through and installed Passenger, says its started in the log.
> > If I try to load a file from the webserver with extension .rb or .erb,
> > I get the text file without having been processed by Ruby. Should this
> > work? What else do I need to do to get a ruby template file to work?
>
> Passenger is designed to run rack applications, these must be laid out
> on disk in a certain way 
> (http://www.modrails.com/documentation/Users%20guide.html#_deploying_a...
> ). This can be something very small - a sinatra app can be tiny!
>
> Fred
>
>
>
> > Thanks
>
> > On Feb 24, 3:44 pm, ben wiseley <[email protected]> wrote:
>
> > > I think the closest thing there is to what you're looking for is mod_rails
> > > (aka Passenger)  http://www.modrails.com/
>
> > > Good install 
> > > directions:http://www.robbyonrails.com/articles/2010/02/08/installing-ruby-on-ra...
>
> > > On Wed, Feb 24, 2010 at 11:47 AM, david2 <[email protected]> wrote:
> > > > I'm trying to ease into Ruby and Rails.
> > > > Is it possible to simply load a Ruby template file similar to the way
> > > > I load a PHP file?
> > > > The Mac built in Apache web server is preconfigured to support PHP,
> > > > but I can't find out how to get it to support Ruby. Is there a simple
> > > > way to add Ruby support?
> > > > Can I even use Ruby this way without building a whole Rails app?
> > > > Is there a better place to ask?
>
> > > > Thanks
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Ruby on Rails: Talk" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<rubyonrails-talk%2Bunsubscrib
> > > >  [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to