Forum: Ruby on Rails clarifications for online wiki TutorialHelperMethods page ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6d023a71f49504460733f66e9a500289?d=identicon&s=25 scootiePuff (Guest)
on 2007-05-31 02:33
(Received via mailing list)

i'm confused with the instructions on this page:

at the top of this page in red, it reads:

'Error in previous page: The show.rhtml does not exist. In previous
versions of the Scaffolding tutorial it tells you to change the name
of the view.rhtml file to show.rhtml and to change the controller
accordingly, but with a parameter, like this:

 def show

And create show.rhtml as a copy of view.rhtml'

first it says above, 'change the name of the view.rhtml file to
and then it later says above, 'and create show.rhml as a copy of

but this is confusing.

1. in my app/views/friends/, i see a 'view.rhtml' file.
2. i change the name of this file from view.rhtml to show.rhtml. done.
3. i edit the app/controllers/friends_controller.rb replacing 'view'
with 'show' and replacing the Person.find parameter information.
4. then it says 'create show.rhtml as a copy of view.rhtml' -- but i
just moved view.rhtml to show.rhtml in #1, so show.rhtml already
exists, and view.rhtml no longer exists!

could someone please clarify this for me and/or on that web page as

at the end of these instructions, could someone clarify the following:
-that view.rhtml no longer exists?
-that show.rhtml exists, with the following in it:
<p>this page will display one friend</p>
<%= %><br />
<%= @person.street1 %><br />
<%= @person.street2 %><br />
<%= %><br />
<%= @person.state %><br />
<%= %><br />

<%= for phone in @person.phones %>
<%= %><br />
<%= end %>

<a href="/friends/list">List</a>
<a href="/friends/destroy/<>">Delete</a>

-that a separate (from the 'def show' method) 'def view' method no
longer exists in the friends_controller.rb file?

thanks in advance for any clarifications.
This topic is locked and can not be replied to.