# RE: newbie - Apache problem two apps

**URL:** <https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785>\
**Category:** Rails\
**Created:** [December 1, 2005, 10:15pm UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785 "2005-12-01T22:15:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 1, 2005, 10:15pm UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/1 "2005-12-01T22:15:09Z")

</div>

Heheheheh that can be a HUGE pain in the butt and it depends largely on  
what OS you’re using. Most folks don’t do it that way… They prefer to  
use vhosts.

[http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOn](http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOn)  
OneMachine

Take a look around the wiki… A lot of these questions are answered  
there.

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 1, 2005, 10:43pm UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/2 "2005-12-01T22:43:28Z")

</div>

This seems to be a big pain as compared to php or jsp.  
I can just place the app folder in the directory and call it.

I check ed on your link, but I do not understand how to get this  
working.  
Is Apache the only way on Windows?

Regards,

Frank R.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 2, 2005, 2:18am UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/3 "2005-12-02T02:18:12Z")

</div>

I was reading the documentation about ActiveRecord and this line  
caught my eye

…which again gives Product#name and Product#name=(new\_name)

Why is it that sometimes a dot notation is used and sometimes the #?

The same thing is true in css where they use

.blue for a class

and

#blue for an id.

Your help will help me digest my dinner.

bruce

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 2, 2005, 2:26am UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/4 "2005-12-02T02:26:17Z")

</div>

On 2/12/2005, at 2:16 PM, Bruce B. wrote:

> I was reading the documentation about ActiveRecord and this line  
> caught my eye
> 
> …which again gives Product#name and Product#name=(new\_name)
> 
> Why is it that sometimes a dot notation is used and sometimes the #?

By convention # indicates an instance method and . indicates a class  
method, for example. Product.find(:all) indicates that this is valid  
code, whereas Product#name shows that you’ll need to create a  
Product instance first.

## That’s what I remember from the Pickaxe anyway.

Phillip H.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 2, 2005, 3:55am UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/5 "2005-12-02T03:55:22Z")

</div>

Thanks Phillip. My dinner is duly digested. Perhaps I should pick  
up this pickaxe book. Is it the free download off the web or is this  
something else. I bought Agile web development. Happy to buy this if  
it will save you answering hundreds of questions from me.

bruce

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 1, 2005, 11:03pm UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/6 "2005-12-01T23:03:47Z")

</div>

Frank R. wrote:

> This seems to be a big pain as compared to php or jsp.  
> I can just place the app folder in the directory and call it.

True, but PHP and JSP is all about serving souped-up web pages. Rails is  
about  
building web-based applications, and things can be very different when  
you cross  
over that line (no matter how blurry PHP and JSP like to make it ;).

-Brian

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [December 2, 2005, 3:59am UTC](https://www.ruby-forum.com/t/re-newbie-apache-problem-two-apps/91785/7 "2005-12-02T03:59:25Z")

</div>

On 2/12/2005, at 3:51 PM, Bruce B. wrote:

> Thanks Phillip. My dinner is duly digested. Perhaps I should pick  
> up this pickaxe book. Is it the free download off the web or is  
> this something else. I bought Agile web development. Happy to buy  
> this if it will save you answering hundreds of questions from me.

You can get the Ruby 1.6 version from [http://www.rubycentral.com/](http://www.rubycentral.com/)  
book/ or pick up the latest from [http://pragmaticprogrammer.com/](http://pragmaticprogrammer.com/)  
titles/ruby/index.html. I would definitely recommend it, it explains  
some of the weirder constructs you see and why they work, they make a  
lot more sense after that.

–  
Phillip H.  
removed\_email\_address@domain.invalid
