More info: I viewed page source for the index page & the funky
references are being passed to it.  Looking at the paths it's easy to
see why the "delete" works & the 'show' & 'edit' don't. The href
number changes each time for the 'Show' (embedded in the project
title) & 'Edit' the index is called. Here's a list:
  <tr>
    <td><a href="/myprojects/37127550">Clean Room</a></td>
    <td><a href="/myprojects/37127550/edit">Edit</a></td>
    <td><a href="/projects/8" onclick="if (confirm('Are you sure?'))
{DELETED EXTRA CODE HERE}
  </tr>

  <tr>
    <td><a href="/myprojects/37127550">Clean House</a></td>
    <td><a href="/myprojects/37127550/edit">Edit</a></td>
    <td><a href="/projects/12" onclick="if (confirm('Are you sure?'))
{DELETED EXTRA CODE HERE}
  </tr>

  <tr>
    <td><a href="/myprojects/37127550">Mom's project</a></td>
    <td><a href="/myprojects/37127550/edit">Edit</a></td>
    <td><a href="/projects/16" onclick="if (confirm('Are you sure?'))
{DELETED EXTRA CODE HERE}
  </tr>

Yes, shame on me for not starting w/ TDD...  will get there once I can
get some rails basics under the belt...


On Jan 26, 11:12 am, Marnen Laibow-Koser <[email protected]> wrote:
> Souschef wrote:
> >> Are you using fixtures?  If so, then high id numbers like this are
> >> normal.
>
> >> If not, then something else is going on.
>
> > I haven't tackled fixtures yet
>
> Good: fixtures are crap.  Use factories instead.
>
> Bad: that suggests that you're not developing test-first yet.  Get the
> habit *now*.
>
> > so I'm not consciously using one,
> > unless there is something in authlogic that's using one that I'm not
> > aware of...
>
> There shouldn't be.  Sounds like you have a problem elsewhere.
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to