# Editing Tutorials Copy thread as the other one seems to have glitched

**URL:** <https://www.ruby-forum.com/t/editing-tutorials-copy-thread-as-the-other-one-seems-to-have-glitched/176100>\
**Category:** Rails\
**Created:** [September 24, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/editing-tutorials-copy-thread-as-the-other-one-seems-to-have-glitched/176100 "2009-09-24T20:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 24, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/editing-tutorials-copy-thread-as-the-other-one-seems-to-have-glitched/176100/1 "2009-09-24T20:13:30Z")

</div>

This was my post but the thread has glitched (to my understanding) so  
here it is again (please delete if the other one starts  
working…) …

Hi, Ive recently bene trying to find a way to edit my tutorials (which  
are stored inside categories) in my RoR app. To edit my category’s  
names I use the following in the category show file:

\<%= link\_to ‘Edit’, edit\_category\_path(@category) %\>

And this is edit in the categories controller:

def edit  
@category = Category.find(params[:id])  
end

but when I change this to tutorials:

\<%= link\_to ‘Edit’, edit\_tutorial\_path(@tutorial) %\>

and

def edit  
@tutorial = Tutorial.find(params[:id])  
end

I get this error on the tutorial show page:

undefined method `edit\_tutorial\_path’ for #\<ActionView::Base:  
0x5ce52fc\>

(or something of those origins)

I had the origional category system setup for me, so I dont know that  
much about how the categories are editable. Therefore its hard for me  
to figure out how to edit the tutorials.

Please Help,

(If you need any more information please just ask),

Thanks In Advance,

Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [September 24, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/editing-tutorials-copy-thread-as-the-other-one-seems-to-have-glitched/176100/2 "2009-09-24T20:17:18Z")

</div>

Joe wrote:

> undefined method `edit\_tutorial\_path’ for #\<ActionView::Base:  
> 0x5ce52fc\>
> 
> (or something of those origins)

> Thanks In Advance,
> 
> Joe

check out your routes file … config/routes.rb and then possibly google  
“restful routing rails” if you are still stuck

hth  
ilan
