[Rails] Re: Basic question on controller; "no route matches for hello/world"

2010-10-02 Thread pauld
Thank you very much, got it to work. On Oct 2, 3:41 pm, radhames brito wrote: > On Sat, Oct 2, 2010 at 5:09 PM, pauld wrote: > > Just starting out with RoR3, and have tried to render first page. > > > Here is code for hello_controller.rb > > > class HelloControl

[Rails] Basic question on controller; "no route matches for hello/world"

2010-10-02 Thread pauld
Just starting out with RoR3, and have tried to render first page. Here is code for hello_controller.rb class HelloController < ApplicationController def world render :text => "Hello world!" end end Did not make any changes to the routes.rb file. When I went to http://localhost:3000/hell

[Rails] Re: Can't see http://localhost:3000/pages/home in browser

2010-09-14 Thread pauld
Thanks. I missed that with all the commented out information. Paul Denlinger On Sep 14, 9:42 pm, Dave Aronson wrote: > On Tue, Sep 14, 2010 at 08:47, pauld wrote: > > Am working my way through the railstutorial.org lesson at > >http://railstutorial.org/chapters/filling-in

[Rails] Can't see http://localhost:3000/pages/home in browser

2010-09-14 Thread pauld
Am working my way through the railstutorial.org lesson at http://railstutorial.org/chapters/filling-in-the-layout#top Am not clear about how to start the autotest, and when I tried to see the above page in the broswer, I got this error: Last login: Tue Sep 14 17:06:38 on ttys000 Paul-Denlingers-

[Rails] Can't see http://localhost:3000/pages/home in browser

2010-09-14 Thread pauld
Am working my way through the railstutorial.org lesson at http://railstutorial.org/chapters/filling-in-the-layout#top Am not clear about how to start the autotest, and when I tried to see the above page in the broswer, I got this error: Last login: Tue Sep 14 17:06:38 on ttys000 Paul-Denlingers-

[Rails] Routing error

2010-09-08 Thread pauld
Am working my way thru Ruby on Rails Tutorial: Learn Rails by Example and am on this page: http://railstutorial.org/chapters/static-pages#top Am getting problems when I create an HTML page in the public directory which is called public/hello.html and should appear as in Figure 3.3. My problem is

[Rails] When will Spork be Rails3-ready?

2010-09-02 Thread pauld
Anyone have any ideas? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. F

[Rails] Re: Rails 3 web server quits with error message on booting

2010-09-02 Thread pauld
uby expression for sure. It's all Ruby out there > and has to comply. > > - A > > On 02/09/2010, at 2:34 PM, pauld wrote: > > > > > Daniel, > > > In that case, isn't the code on Listing 2.2, 2.3, 2.4 wrong here at > >http://railstutorial.or

[Rails] Re: Rails 3 web server quits with error message on booting

2010-09-02 Thread pauld
Daniel, In that case, isn't the code on Listing 2.2, 2.3, 2.4 wrong here at http://railstutorial.org/chapters/a-demo-app#top Shouldn't that have the normal methods in there instead? Thanks, Paul On Sep 2, 7:27 pm, Daniel Bye wrote: > On Thu, Sep 02, 2010 at 04:18:54AM -0700

[Rails] Re: Rails 3 web server quits with error message on booting

2010-09-02 Thread pauld
t; > > > > On Thu, Sep 2, 2010 at 4:27 PM, pauld wrote: > > Hi, have tried to boot the web server but keep on getting this error > > message. Can you help me figure out what it means? TIA > > > rails server > > => Booting WEBrick > > => Rails 3

[Rails] Rails 3 web server quits with error message on booting

2010-09-02 Thread pauld
Hi, have tried to boot the web server but keep on getting this error message. Can you help me figure out what it means? TIA rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /Use

[Rails] Re: Can't quit server in Rails 3

2010-08-30 Thread pauld
Thank you, you caught my dumb newbie mistake. Thanks to all of your for your time and help. Paul Denlinger On Aug 30, 8:12 pm, Chris Mear wrote: > On 30 Aug 2010, at 13:03, pauld wrote: > > > > > > > Thanks for the detailed kill instructions; but it still doesn't

[Rails] Re: Can't quit server in Rails 3

2010-08-30 Thread pauld
ng, restart your terminal, and always 'kill rails' efficiently: > > echo "alias kill_rails='ps aux | grep rails | awk '{print $2}' | > xargs kill -9'" >> ~/.bashrc > > The cool thing about stopping processes with a Mac is: there is more > t

[Rails] Re: Trouble with rvm (Ruby Version Manager)

2010-08-30 Thread pauld
OK, now I got it. Fixed. Thank you. Paul Denlinger On Aug 30, 7:23 pm, Peter De Berdt wrote: > On 30 Aug 2010, at 13:15, pauld wrote: > > > Per your instructions, I added the PATH instructions to > > the .bash_profile file, and opened another shell. > > > But

[Rails] Re: Trouble with rvm (Ruby Version Manager)

2010-08-30 Thread pauld
? Thanks, Paul Denlinger On Aug 30, 6:53 pm, Peter De Berdt wrote: > On 30 Aug 2010, at 11:01, pauld wrote: > > > Am having trouble with rvm. Successfully installed it, but when I > > tried to install Ruby 1.8.7, here is the error I got: > > > Paul-Denlingers-MacBook-Pro:~ pd

[Rails] Re: Can't quit server in Rails 3

2010-08-30 Thread pauld
s/layout (0.9ms) On Aug 30, 1:26 pm, ChenJie|抽屉 wrote: > On Mon, Aug 30, 2010 at 11:17, pauld wrote: > > Hi-- > > > My answers below. > > > On Aug 30, 9:44 am, ChenJie|抽屉 wrote: > > > On Mon, Aug 30, 2010 at 08:57, pauld wrote: > > > > Just wan

[Rails] Trouble with rvm (Ruby Version Manager)

2010-08-30 Thread pauld
Hi-- Am having trouble with rvm. Successfully installed it, but when I tried to install Ruby 1.8.7, here is the error I got: Paul-Denlingers-MacBook-Pro:~ pdenlinger$ rvm install 1.8.7 -bash: rvm: command not found Tried closing terminal, quitting terminal, opening another tab, etc. but continue

[Rails] Re: Can't quit server in Rails 3

2010-08-29 Thread pauld
Hi-- My answers below. On Aug 30, 9:44 am, ChenJie|抽屉 wrote: > On Mon, Aug 30, 2010 at 08:57, pauld wrote: > > Just wanted to append some more information. > > > Looks like after the rails server starts, it doesn't hand control back > > to bash in the terminal

[Rails] Re: Can't quit server in Rails 3

2010-08-29 Thread pauld
how can this be changed? Thank you. On Aug 30, 8:11 am, pauld wrote: > After Rails 3 was just released today, I downloaded it and followed > the instructions on Rails Guide for building my first app at Getting > Started with Railshttp://guides.rubyonrails.org/getting_started.html > > Ever

[Rails] Can't quit server in Rails 3

2010-08-29 Thread pauld
After Rails 3 was just released today, I downloaded it and followed the instructions on Rails Guide for building my first app at Getting Started with Rails http://guides.rubyonrails.org/getting_started.html Everything worked fine until I got to 4.2 Say "Hello" Rails. Entered the "rails generate ho

[Rails] Question about RVM installation; where to find .bashrc and/or .bash_profile files?

2010-08-22 Thread pauld
Hi-- Have just installed downloaded and installed RVM from Github and got this message after download: You must now finish the install manually: 1) Place the folowing line at the end of your shell's loading files(.bashrc or .bash_profile for bash and .zshrc for zsh), after all path/variable setti

[Rails] Can't quit server after running script/server command

2010-08-09 Thread pauld
Am working on first_app for RoR and am running Ruby 1.8.7 and Rails 2.3.8 on Mac OSX Snow Leopard. Having trouble after I run the script/server command which boots up Mongrel. When I press Control-C to quit the server, I get no response. What is wrong, and what can I do to correct the issue? Tha

[Rails] Re: Need help with rake db:migrate error

2009-12-04 Thread pauld
Thank you! That did the trick. Paul On Dec 4, 6:29 pm, David Li wrote: > You got an extra 'c' at the beginning of the file. ;) > -- > undefined local variable or method `c' for main:Object > > --- > c#--- > --- > > On Dec 4, 6:22 pm, pauld wrote: >

[Rails] Re: Need help with rake db:migrate error

2009-12-04 Thread pauld
inue to pop up where you least expect them. }, :image_url => '/images/utc.jpg', :price => 27.75) end def self.down Product.delete_all end end On Dec 4, 5:22 pm, pauld wrote: > Trying to do a rake db:migrate command and am getting this error. Your &

[Rails] Need help with rake db:migrate error

2009-12-04 Thread pauld
Trying to do a rake db:migrate command and am getting this error. Your help appreciated. Macintosh:depot pdenlinger$ rake --trace (in /Users/pdenlinger/Sites/depot) ** Invoke default (first_time) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepar

[Rails] Re: Need help debugging syntax error from Agile Web Development, 3RD Edition

2009-12-04 Thread pauld
Hi Colin-- Thanks. Got the errors. Two missing commas. Will try to avoid repeating that mistake in the future. Paul On Dec 4, 4:23 pm, Colin Law wrote: > 2009/12/4 pauld : > > > Thank you. > > > I'm still getting an error for the second statement: > > >

[Rails] Re: Need help debugging syntax error from Agile Web Development, 3RD Edition

2009-12-04 Thread pauld
gt; 'must be a URL for GIF, JPG' + 'or > PNG image' > > protected >  def price_must_be_at_least_a_cent >    errors.add(:price, 'should be at least 0.01') if price.nil? || >    price < 0.01 >  end > > end > > Thanks & Regards, > Dhruva Sag

[Rails] Need help debugging syntax error from Agile Web Development, 3RD Edition

2009-12-03 Thread pauld
Hi-- I'm having trouble with a syntax error, which I'm working with on page 89 of Agile Web Development. I'm getting the following syntax error: /Users/pdenlinger/Sites/depot/app/models/product.rb:4: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '(' validates_numericality_of :price

[Rails] Re: Trouble with rake

2009-11-12 Thread pauld
The missing comma was the problem. The migration worked now. Thank you. pauld On Nov 12, 6:39 pm, Conrad Taylor wrote: > On Thu, Nov 12, 2009 at 2:06 AM, pauld wrote: > > > Here you go: > > > class AddPriceToProduct < ActiveRecord::Migration > >  def self.

[Rails] Re: Trouble with rake

2009-11-12 Thread pauld
> Can I see what's in 20091112074628_add_price_to_product.rb ? > It says there's a syntax error in your migration. > > > > On Thu, Nov 12, 2009 at 9:12 AM, pauld wrote: > > > Am having trouble with rake file, but can't find problem. Can you > > help

[Rails] Trouble with rake

2009-11-12 Thread pauld
Am having trouble with rake file, but can't find problem. Can you help? Haven't been able to understand the error message returned. Thank you. - Macintosh:depot pdenlinger$ rake db:migrate (in /Users/pdenlinger/Site

[Rails] Having trouble updating Gems; need to change write permissions on directory

2009-10-16 Thread pauld
Hi-- I just updated to Rails 2.2.3 last night. Wanted to develop a new app today but got message that I needed to update Gems from 1.3.1 to 1.3.2 So, I ran Terminal and entered the gems update --system command. I got message returned saying " While executing gem ... (Gem::FilePermissionError) Yo

[Rails] Re: NoMethodError in Stories#show

2009-09-30 Thread pauld
Yes, I do have a method in the stories_controller.rb file. I have copied the contents of the file below: class StoriesController < ApplicationController def index @story = Story.find(:first, :order => 'RANDOM()') end def new @story = Story.new end def create @story = Story.n