Forum: Ruby on Rails Newbie .. nil object and missing something obvious

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-23 21:58
Trying to do first project in Ruby on Rails, and I'm getting the dreaded
nil object exception. I've reduced the code to what I think is the
minimal case, and it's still not working. Code presented below..
----------------------------------------------------------------------
in "app/controllers/dashboard_controller.rb"

class DashboardController < ApplicationController
  def display_calendar
    @dates[0] = Date.Today
    @dates << Date.Today + 1
  end
end

in "app/views/dashboard/display_calendar.rhtml"

<h1>Display Calendar</h1>

<p>
  First day should be <%= Date.today %><br/>
  Second day should be <%= Date.today + 1 %>
  First day is <%= @dates[0] %>
</p>
-------------------------------------------------------------------

The fact that the page is getting a nil suggests that the controller is
not setting @dates properly. However, the code is so simple that I'm
sure I'm missing something fundamental. Any suggestions?

Thanks in advance for your help.
Ae03102311939454d2b7f1ca3139fd97?d=identicon&s=25 Lindsay Boyd (Guest)
on 2006-04-23 22:11
Robert Sherwood wrote:
> Trying to do first project in Ruby on Rails, and I'm getting the dreaded
> nil object exception.

What happens if you change '@dates[0] = Date.Today' to '@dates =
Date.Today'?

-Lindsay
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-23 22:22
> What happens if you change '@dates[0] = Date.Today' to '@dates =
> Date.Today'?

Thanks for you reply. I have tried that variation, but I'm getting the
same error.

In the other statement, will @dates still be an array, and will
@dates[0] be meaningful? How does Ruby know that it is building @dates
as an array of date objects, rather than a single Date?
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-23 22:48
I realized it would be helpful to print the entire error:

--------------------------------------------------------------------------

Showing app/views/dashboard/display_calendar.rhtml where line #6 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]

Extracted source (around line #6):

3: <p>
4:   First day should be <%= Date.today %><br/>
5:   Second day should be <%= Date.today + 1 %>
6:   First day is <%= @dates[0] %>
7: </p>

RAILS_ROOT: script/../config/..
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-23 22:54
(Received via mailing list)
Can you post the exact error message you are getting?

Also, in your example, you use 'Date.Today' and 'Date.today' (note the
capitalization).  That could cause problems if it isn't just a typo.

You can also put 'puts @dates[0]' in the controller and the message
should show up on your WEBrick console.

Try the display_calendar function in irb to make sure it is doing what
you think it should.

on Sunday, April 23, 2006, at 9:58 PM, Robert Sherwood wrote:
>  end
></p>
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
59ea1b450935b9d70abfec4186b7a4d5?d=identicon&s=25 Jeff Coleman (progressions)
on 2006-04-23 22:56
Robert Sherwood wrote:

> The fact that the page is getting a nil suggests that the controller is
> not setting @dates properly. However, the code is so simple that I'm
> sure I'm missing something fundamental. Any suggestions?
>
> Thanks in advance for your help.

irb(main):001:0> x = Date.Today
NoMethodError: undefined method `Today' for Date:Class
        from (irb):1
irb(main):002:0> x = Date.today
=> #<Date: 4907697/2,0,2299161>
irb(main):003:0>

Jeff Coleman
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-23 23:00
(Received via mailing list)
That helps some...

@dates does not exist for some reason.

I think you need to initialize @dates as an array before you use it..
try this..

def display_calendar
  @dates = [Date.today, Date.today+1]
end

On Sunday, April 23, 2006, at 10:48 PM, Robert Sherwood wrote:
>Extracted source (around line #6):
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-23 23:25
(Received via mailing list)
On Apr 23, 2006, at 12:58 PM, Robert Sherwood wrote:

> <p>
>   First day should be <%= Date.today %><br/>
>   Second day should be <%= Date.today + 1 %>
>   First day is <%= @dates[0] %>
> </p>

The other folks solved your problem, but I'll
throw in a style tip:

   <p>
     First day should be <%= Date.today %><br/>
     Second day should be <%= Date.today + 1 %>
     First day is <%= @dates.first %>
     Last day is <%= @dates.last %>
   </p>

Additionally, rails provides some really nice
date routines.

   1.day.from_now

--
-- Tom Mornini
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 03:13
Thanks so much for everyone's help. Lot's of good advice. I'm still
having the problem, but I appreciate everyone's patience so far.

Let me print the new code and error:
------------------------------------------------------------------------
app/controllers/dashboard_controller.rb
------------------------------------------------------------------------
class DashboardController < ApplicationController
  def display_calendar
    @dates = [Date.today, Date.today + 1]
  end
end
------------------------------------------------------------------------
app/views/dashboard/display_calendar.rhtml
------------------------------------------------------------------------
<h1>Display Calendar</h1>

<p>
  First day should be <%= Date.today %><br/>
  Second day should be <%= Date.today + 1 %><br/>
  First day is <%= @dates.first %><br/>
  Last day is <%= @dates.last %>
</p>

------------------------------------------------------------------------
Error page:
------------------------------------------------------------------------
NoMethodError in Dashboard#display_calendar.rhtml

Showing app/views/dashboard/display_calendar.rhtml where line #6 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.first

Extracted source (around line #6):

3: <p>
4:   First day should be <%= Date.today %><br/>
5:   Second day should be <%= Date.today + 1 %><br/>
6:   First day is <%= @dates.first %><br/>
7:   Last day is <%= @dates.last %>
8: </p>
------------------------------------------------------------------------

As an earlier poster suggested, it looks like @dates isn't being
initialized. What's driving me crazy is that the code is so simple, I
don't understand what can be going wrong. It's a simple assignment and
display. At another poster's suggestion, I have run the code through
irb:

irb(main):015:0> dates = [Date.today, Date.today + 1]
=> [#<Date: 4907697/2,0,2299161>, #<Date: 4907699/2,0,2299161>]
irb(main):016:0> puts dates[0]
2006-04-23
=> nil
irb(main):017:0> puts dates[1]
2006-04-24
=> nil
irb(main):018:0> puts dates.first
2006-04-23
=> nil
irb(main):019:0> puts dates.last
2006-04-24
=> nil

Of course, the differnce here is that not using an instance variable.
Could that be the problem? I'm sure I've seen instance variables used
for this purpose in other code.

In any case. Thanks to everyone for your help so far..
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 03:27
(Received via mailing list)
Hmmm... now this is getting weird.  Try putting a '<%= @dates.inspect
%>' in there.

What version of rails/ruby are you running?

On Monday, April 24, 2006, at 3:13 AM, Robert Sherwood wrote:
>  end
>  Last day is <%= @dates.last %>
>You might have expected an instance of Array.
>------------------------------------------------------------------------
>2006-04-23
>
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 03:39
Kevin Olbrich wrote:
> Hmmm... now this is getting weird.  Try putting a '<%= @dates.inspect
> %>' in there.
Changes listed below:
------------------------------------------------------------------------
app/views/dashboard/display_calendar.rhtml
------------------------------------------------------------------------
<h1>Display Calendar</h1>

<p>
  First day should be <%= Date.today %><br/>
  Second day should be <%= Date.today + 1 %><br/>
  <%= @dates.inspect %>
</p>

------------------------------------------------------------------------
Output:
------------------------------------------------------------------------
Display Calendar

First day should be 2006-04-23
Second day should be 2006-04-24
nil


> What version of rails/ruby are you running?
$ ruby --version
ruby 1.8.4 (2005-12-24) [i486-linux]

$ rails --version
Rails 1.1.2

Thanks again to everyone for the help. I'm going to try regenerating the
project with the rails command, adding just those two files, and
reloading...
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 03:45
> Thanks again to everyone for the help. I'm going to try regenerating the
> project with the rails command, adding just those two files, and
> reloading...

Okay, that didn't work. However, I've tried some of the code on the
console. Of course, it works there..

>> @dates = [Date.today, Date.today + 1]
=> [#<Date: 4907697/2,0,2299161>, #<Date: 4907699/2,0,2299161>]
>> @dates.first
=> #<Date: 4907697/2,0,2299161>
>> puts @dates.first
2006-04-23
=> nil
>> puts @dates.last
2006-04-24
=> nil


Crazymaking!
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 04:21
(Received via mailing list)
Try putting a 'puts @dates.inspect' into the controller action at the
end.  Then check your WEBrick console window after the request to see
what it outputs.

My only other suggestion at this point would be to rename @dates to
something like @array1.

On Monday, April 24, 2006, at 3:45 AM, Robert Sherwood wrote:
>=> #<Date: 4907697/2,0,2299161>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 04:39
Kevin, thank you for your help..

> Try putting a 'puts @dates.inspect' into the controller action at the
> end.  Then check your WEBrick console window after the request to see
> what it outputs.

Okay. Nothing listed in the output of the Console. Just for S+G's I
added a "puts 'Testing'" to check. I also added a bogus variable to the
.rhtml file and tried again. The bogus variable (@nothing) is also nil.
Finally, I commented out the entire "display_calendar" method in the
controller, and I got the same output, rather than the usual "missing
method" or "no method responds to <blah, blah...>"

So my question is this. Is it possible that control is not being routed
through the dashboard method? How can I confirm that.. also, why does
rails hate me so much :)? I'm going to start digging through the
dispatcher code (I think that's what it's called).

>
> My only other suggestion at this point would be to rename @dates to
> something like @array1.
>

I thought maybe dates was some undocumented reserved word, so a couple
of days ago I tried @xyz.. no dice.
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 04:54
Okay, started a new application with "rails Test_site". Created new
controller with "./scripts/generate controller dashboard
diplay_calendar" Copied text from previously buggy code into newly
generated controller. Still having the same problem.. I'm off to bed,
Thanks again to everyone who has helped.
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-24 05:01
(Received via mailing list)
What URL are you accessing during testing?

--
-- Tom Mornini
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 05:04
(Received via mailing list)
1. Make sure there are no other web servers running
2. make sure you are running in the 'development' environment
3. check your routes.rb file for problems.  Your server may be serving
up the .rhtml file directly
4. make sure you test it with WEBrick or Mongrel.  Disable apache if it
is running.

As for why Rails hates you... my guess is that she smells XML on your
breath and she thinks you've been cheating on her with Java. ;)


On Monday, April 24, 2006, at 4:39 AM, Robert Sherwood wrote:
>controller, and I got the same output, rather than the usual "missing
>>
>
>I thought maybe dates was some undocumented reserved word, so a couple
>of days ago I tried @xyz.. no dice.
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 05:37
Tom Mornini wrote:
> What URL are you accessing during testing?

http://localhost:3000/dashboard/display_calendar.rhtml

Thanks
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 06:18
(Received via mailing list)
Robert Sherwood wrote:

> Tom Mornini wrote:
>> What URL are you accessing during testing?

Excellent sleuthing, Tom!

>
> http://localhost:3000/dashboard/display_calendar.rhtml
>

Robert,

In Rails, your URL should point to the controller action, not the view
it
renders.  Drop the ".rhtml".

hth,
Bill
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-24 06:57
(Received via mailing list)
On Apr 23, 2006, at 9:14 PM, Bill Walton wrote:

> Robert Sherwood wrote:
>
>> Tom Mornini wrote:
>>> What URL are you accessing during testing?
>
> Excellent sleuthing, Tom!

Thanks.

>> http://localhost:3000/dashboard/display_calendar.rhtml
>
> Robert,
>
> In Rails, your URL should point to the controller action, not the
> view it renders.  Drop the ".rhtml".

Learn something new every day!

Why is rails trying to serve up .rhtml files if they're not under
public?

I think this requires a bug report to be filed!

--
-- Tom Mornini
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 15:01
Thanks to everyone for the help.

Okay, I've got an update from bizarro world. Someone kindly volunteered
to try the code in their environment, after failing to reproduce the
error. I zipped up the application, sent it over, and  <Drum roll
please.....>

>It works; I get the dates displayed.  I didn't change anything at all,
>so that's absolute proof that the application code itself is not to
>blame.

So now I'm going to go jump off a bridge... :)

I will try the URL without the ".rhtml", unfortunately, I'll have to
wait 'til this evening after work.

Thanks again to everyone for your patience and assistance.
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 15:11
(Received via mailing list)
Yeah, the URL is probably getting you.  The webserver is sending you the
file directly without running the controller first.

I'm pretty sure it will work without the extension.

On Monday, April 24, 2006, at 3:01 PM, Robert Sherwood wrote:
>
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
1fba4539b6cafe2e60a2916fa184fc2f?d=identicon&s=25 unknown (Guest)
on 2006-04-24 15:30
(Received via mailing list)
Hi --

On Mon, 24 Apr 2006, Robert Sherwood wrote:

>
> So now I'm going to go jump off a bridge... :)
>
> I will try the URL without the ".rhtml", unfortunately, I'll have to
> wait 'til this evening after work.

I can confirm that *with* the .rhtml, I get the same result you do.  I
believe the problem is solved.  (Except that, as another poster
pointed out, it's kind of disconcerting that the view templates are
reachable this way at all.)


David

--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

"Ruby for Rails" PDF now on sale!  http://www.manning.com/black
Paper version coming in early May!
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 17:21
(Received via mailing list)
Hi Robert,

Robert Sherwood wrote:
<snip>

> Okay, I've got an update from bizarro world.
> Someone kindly volunteered to try the code in
> their environment, after failing to reproduce the
> error. I zipped up the application, sent it over,
> and  <Drum roll please.....
>
>>It works; I get the dates displayed.  I didn't
> change anything at all, so that's absolute proof
> that the application code itself is not to
> blame.

You appear to have a piece of code that exposes a config-specific bug in
RoR.  I, for one, would be grateful if you could make the time to
document
your configuration and submit that and your code so that the bug can
either
be tracked down and fixed or a FAQ developed to warn folks off of using
that
config.

Best regards,
Bill
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 17:34
(Received via mailing list)
Actually, I can reproduce his problem using the standard cookbook app
that comes with InstantRails.  At least in development mode, if you
request the .rhtml file, you will get it.  I don't know if production
mode closes this hole or not.

It does not seem to be anything specific to his own configuration.

On Monday, April 24, 2006, at 10:19 AM, Bill Walton wrote:
>>
>using that
>config.
>
>Best regards,
>Bill
>
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 18:11
(Received via mailing list)
Hi Kevin,

A couple of additional thoughts below...

Kevin Olbrich wrote:


> Actually, I can reproduce his problem using
> the standard cookbook app  that comes with
> InstantRails.  At least in development mode, if you
> request the .rhtml file, you will get it.  I don't know
> if production mode closes this hole or not.
>
> It does not seem to be anything specific to his own
> configuration.

Perfect!  Not speaking for anybody but me... thanks much for making the
time
to test that.  If the two of you could find a way to spend just a little
additional time on this, it would be great to validate something.

To both of you, what exactly is your system configuration? For Robert,
what
about your friend's config.  I ask because for the past week I have, and
still am, spending quite a bit of time testing / debugging a segment
fault
problem that's specific, at least, to Windows 2000 Pro SP3 and SP4.
Can't
get the problem to display itself on XP.  That doesn't mean it's not a
bug.
It means that it's a bug that only shows itself in a specific config.
It
either needs to be fixed, or if the effort to fix it for that config is
not
justified from a 'market share' perspective, then it at least needs to
be
documented.  It may be that both you and Robert are running the same
config
and that his friend is running a different one.  It would be good to
validate that this is not config-specific.

Independent of the results above, it seems to me we need 'a call' from
the
Rails core team as to this behavior.  Is there a 'better' way than just
going ahead and submitting it as a bug?

Best regards,
Bill

It may be that Rails is 'working as designed / intended' and there's
something that needs to be *highlighted* in the documentation.  It may
already be documented, for example, that this is allowed in development
for
reason 'X' and that before moving a Rails app into production, we need
to do
'A', 'B', and 'C'.
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 18:39
(Received via mailing list)
As a follow up, I too can reproduce the 'NoMethodError in
Recipe#list.rhtml'
by starting the cookbook app that comes with InstantRails by pointing
the
browser to 'http://localhost:300/recipe/list.rhtml'.  That's
reproducible on
the two boxes I have here: WinXP - Home Addition and Win2K SP 4.

Tom Mornini,

You caught this.  You should get the 'glory' (aka, 'the extra work' ;-)
)
You going to submit the bug report?

Best regards,
Bill


----- Original Message -----
From: "Bill Walton" <bill.walton@charter.net>
To: <rails@lists.rubyonrails.org>
Sent: Monday, April 24, 2006 11:11 AM
Subject: Re: [Rails] Newbie .. nil object and missing something
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 18:55
(Received via mailing list)
I'm using InstantRails on a WinXP machine.

As I said before, I don't think this is a configuration dependent thing.

It does seem to happen for me in production mode, but I would appreciate
it if someone could verify that.

On Monday, April 24, 2006, at 11:11 AM, Bill Walton wrote:
>> request the .rhtml file, you will get it.  I don't know
>To both of you, what exactly is your system configuration? For
>documented.  It may be that both you and Robert are running the same
>
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-24 19:01
(Received via mailing list)
On Apr 24, 2006, at 9:36 AM, Bill Walton wrote:

> As a follow up, I too can reproduce the 'NoMethodError in
> Recipe#list.rhtml' by starting the cookbook app that comes with
> InstantRails by pointing the browser to 'http://localhost:300/
> recipe/list.rhtml'.  That's reproducible on the two boxes I have
> here: WinXP - Home Addition and Win2K SP 4.
>
> Tom Mornini,
>
> You caught this.  You should get the 'glory' (aka, 'the extra
> work' ;-) ) You going to submit the bug report?

The glory belongs to the person who submits a patch to
fix it. :-)

http://dev.rubyonrails.org/ticket/4866

--
-- Tom Mornini
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 19:54
(Received via mailing list)
Tom Mornini wrote:


> http://dev.rubyonrails.org/ticket/4866
Or to the person who updates the wiki FAQs if that's the decision by the
core team.

In any event, I've never been a big supporter of the "Lone Ranger" model
for
recognition / thanks.  Personally speaking, I've always had / observed
better results from a team / credit-where-credit's-due model. ;-)

Best regards,
Bill
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 20:00
(Received via mailing list)
Kevin Olbrich wrote:
>
> It does seem to happen for me
> in production mode,

Ouch!  Are you planning to update the ticket Tom entered?

> but I would appreciate
> it if someone could verify that.

+1

Best regards,
Bill
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 20:16
(Received via mailing list)
updated.

FYI, it's ticket #4866
http://dev.rubyonrails.org/ticket/4866#preview

On Monday, April 24, 2006, at 12:57 PM, Bill Walton wrote:
>+1
>
>Best regards,
>Bill
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 20:20
Newbie here...

Would it still be useful for me to post details of my environment? It
seems pretty universally reproduceable, so I'm not sure there's
significant benefit in doing so.
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 20:41
(Received via mailing list)
Hi Robert,

Robert Sherwood wrote:

> Would it still be useful for me to
> post details of my environment?

If your config has already been accounted for, then probably not.

> It seems pretty universally reproduceable,
> so I'm not sure there's significant benefit
> in doing so.

What would be most valuable at this point, I think, is understanding
what
the config is on the system that did *not* exhibit the failure.  From a
testing / debugging perspective, knowing both cases can significantly
reduce
the effort to understand / fix the problem.

Thanks again for making the time to report / drive this to ground.  It
is,
IMHO, a real service to the community.

Best regards,
Bill
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 20:41
(Received via mailing list)
I doubt it will help much at this point.


On Monday, April 24, 2006, at 8:20 PM, Robert Sherwood wrote:
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
6b35721dba6118abf53ccd5b96a795e3?d=identicon&s=25 Robert Sherwood (foofboy)
on 2006-04-24 20:47
> What would be most valuable at this point, I think, is understanding
> what
> the config is on the system that did *not* exhibit the failure.  From a
> testing / debugging perspective, knowing both cases can significantly
> reduce
> the effort to understand / fix the problem.

That person was able to reproduce the problem by appending "*.rhtml" to
their call, just as I did. Originally, they had done the right thing and
called just "controller/action", instead of "controller/action.rhtml".
So it looks like a combination of user error, and unexpected system
behavior.
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-24 20:47
(Received via mailing list)
My immediate suspicion is that his friend actually tried the standard
rails url (without the .rhtml), and that is why it worked for him.

On Monday, April 24, 2006, at 1:36 PM, Bill Walton wrote:
>> so I'm not sure there's significant benefit
>
>Best regards,
>Bill
>
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-24 20:59
(Received via mailing list)
Robert Sherwood wrote:
>
> That person was able to reproduce
> the problem by appending "*.rhtml" to
> their call, just as I did.

Then, other than the production mode question, I'd say it's in the core
team's court.

Thanks again!
Bill
This topic is locked and can not be replied to.