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
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
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
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-
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-
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
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
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
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
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
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
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
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
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
?
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
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
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
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
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
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
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
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
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:
>
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
&
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
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:
>
> >
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
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
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.
> 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
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
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
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
33 matches
Mail list logo