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.
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.
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.
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 ;).
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.