RE: newbie - Apache problem two apps


#1

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
OneMachine

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


#2

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


#3

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


#4

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


#5

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


#6

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


#7

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/
book/ or pick up the latest from 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