So it sounds like I can't have Ruby process a standalone template
file? So I can't use Ruby as a simple replacement for PHP without
adhering more to an application convention for a framework?

I have a mostly static website that I use PHP for simple things, like
handling including fragments of HTML that repeat on multiple pages.

It sounds like I can't reasonably use Ruby as a replacement for PHP in
this situation?

I'd rather stick to one language and environment if I can. Sounds like
I'd need to keep using PHP for my mostly static website and Ruby on
Rails for my web apps. I had hoped to avoid two languages.

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