[Rails] Re: Editing "Tutorials"

2009-10-10 Thread Joe
I had to write a new path in routes.rb, it waas that simple. Fixed it all by myself and I feel good that I did it on my own! Thanks anyway guys, Joe On Sep 29, 6:12 pm, Joe wrote: > Hmm. ok, I suppose you have a vailid point. > > I will look through many articles and post back if I find a s

[Rails] Re: Editing "Tutorials"

2009-09-29 Thread Joe
Hmm. ok, I suppose you have a vailid point. I will look through many articles and post back if I find a solution (for anyone else who encounters this problem) On Sep 28, 8:52 pm, Colin Law wrote: > 2009/9/28 Joe : > > > > > Have a look for yourself  http://www.dev-hq.co.uk > > > Its at the mome

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Colin Law
2009/9/28 Joe : > > Have a look for yourself  http://www.dev-hq.co.uk > > Its at the moment what would be classed as a "hobby site" but I plan > to grow it into a profitable buissness in time. > Well there is the problem, or at least part of it. If you had been struggling to complete a site for

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Joe
Have a look for yourself http://www.dev-hq.co.uk Its at the moment what would be classed as a "hobby site" but I plan to grow it into a profitable buissness in time. Once again please help, Thanks In Advance, Joe On Sep 28, 6:42 pm, Colin Law wrote: > 2009/9/28 Joe : > > > > > > >> > I

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Colin Law
2009/9/28 Joe : > >> > I do want >> > a more direct answer as personally although  direct answer may be >> > classed as "cheating" or "making you do it for me" its the way I find >> > it best to learn. >> >> Well, it's not the way most people on this list find it best to teach. > > > Hmm... OK. >

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Joe
> > I do want > > a more direct answer as personally although direct answer may be > > classed as "cheating" or "making you do it for me" its the way I find > > it best to learn. > > Well, it's not the way most people on this list find it best to teach. Hmm... OK. This thing is with the post a

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Marnen Laibow-Koser
Joe wrote: > Well of couse im learning from it, and that is for sure. But I really > need to fix this before the big part of the learning curve. You're expecting the impossible. If you want to fix this app yourself, you need to learn enough to fix it. If you don't have time to do that, then

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread Joe
Well of couse im learning from it, and that is for sure. But I really need to fix this before the big part of the learning curve. I do want a more direct answer as personally although direct answer may be classed as "cheating" or "making you do it for me" its the way I find it best to learn. I a

[Rails] Re: Editing "Tutorials"

2009-09-28 Thread richardun
If you're not good in rails, why are you doing a website in it? Why are you posting here? Probably to get better, right? Or is it just to have us fix your site. The info I'm giving you is to help *you* solve your problem. It's not my problem, and not the problem of this forum. People that po

[Rails] Re: Editing "Tutorials"

2009-09-27 Thread Joe
Im attempting to edit the tutorial and the tutorial does have content and name, not the category. Are the other content bits messing up because i havnt done the form correctly then? If so do you have a more direct response to fix it? as im really not good in rails... Thanks In Advance, Joe

[Rails] Re: Editing "Tutorials"

2009-09-27 Thread richardun
I know you've moved on from the path issue, but to help you in the future, I found something that has helped me figure out paths. One, someone already mentioned, which was: :; rake routes Which you probably already knew. But you can also put a path in that you're guessing will work and see wh

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread Joe
Right.. Just maybe figured out another bit of it. I changed: <% form_for(@tutorial_category, @tutorial) do |f| %> to <% form_for(@tutorial.category, @tutorial) do |f| %> and this seems to function properly, however now I have a new issue that ive been working on for hours and still cant figure

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread Joe
Strangely.. I acctually figured out what was wrong and corrected to: edit_category_tutorial_path(@tutorial_category.id, @tutorial) which seems to lead to the edit page. However I now have an issue on this page, as the form as it was ( <% form_for(@tutorial) do |f| %> ) gives the error: undefine

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread richardun
Marnen is right. You're not going to get far with people's help most places if you don't take the minimal effort to be courteous (or at least stop using "Soz"). You seem to be desperate rather often (http://groups.google.com/group/ rubyonrails-talk/browse_thread/thread/ a25e07d2414e2b32/4bca7399

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread Marnen Laibow-Koser
Joe wrote: > Any1?? You couldn't wait 24 hours to bump? You couldn't bother to type full words? Those two things tend to really annoy those in a position to help. > > (Soz for bump, im just RLLY desperate to fix) Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Post

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread Joe
Yes correct I am desperate rather often as I was supposed to only take my site down for a few says to do this and it hs extended onto weeks. I will read the link (although im so bas in RoR im not honestly sure if i'll understand it), If anyone wants to give a more direct answer please feel free

[Rails] Re: Editing "Tutorials"

2009-09-26 Thread Joe
Any1?? (Soz for bump, im just RLLY desperate to fix) On Sep 25, 6:02 pm, Joe wrote: > Then I get this error on the tutorial show page: > > edit_category_tutorial_url failed to generate from > {:action=>"edit", :controller=>"tutorials", :category_id=># id: 14, category_id: 1, name: "The tutorial

[Rails] Re: Editing "Tutorials"

2009-09-25 Thread Joe
Then I get this error on the tutorial show page: edit_category_tutorial_url failed to generate from {:action=>"edit", :controller=>"tutorials", :category_id=>#}, expected: {:action=>"edit", :controller=>"tutorials"}, diff: {:category_id=>#} On Sep 25, 9:11 am, bill walton wrote: > Hi Joe, > > >

[Rails] Re: Editing "Tutorials"

2009-09-25 Thread bill walton
Hi Joe, On Thu, 2009-09-24 at 22:54 -0700, Joe wrote: > edit_category GET /categories/:id/edit(.:format) > edit_category_tutorial GET /categories/:category_id/tutorials/:id/edit > (.:format) > > > > On Sep 24, 11:09 am, Joe wrote: > > > > > <%= link_to 'Edit', edit_category_path(@category)

[Rails] Re: Editing "Tutorials"

2009-09-24 Thread Joe
categories GET /categories(.:format) POST /categories(.:format) new_category GET /categories/new(.:format) edit_category GET /categories/:id/edit(.:format) category GET /categories/:id(.:format) PUT /categories /categories/:id(.:format) DELETE /categories/

[Rails] Re: Editing "Tutorials"

2009-09-24 Thread Eric
What do you mean your tutorials "are stored inside categories?" Also: rake routes -eric On Sep 24, 11:09 am, Joe wrote: > 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 t

[Rails] Re: Editing Tutorials Copy thread as the other one seems to have glitched

2009-09-24 Thread Ilan Berci
Joe wrote: > > undefined method `edit_tutorial_path' for # 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 -- Posted via http:/