i am getting the missing template error when i try to update my post.
Missing template posts/update, application/update
...
POST_CONTROLLER.RB
class PostsController < ApplicationController
...
def update
end
Once you have typical code in the controller to handle updates, you'll
no longer have this problem. A typical update action redirects to
show on success, and renders the edit template on failure. Either
one, though, is *explicit*. As several posters here regularly say, I
recommend you work your way straight through a good tutorial, such as
https://www.railstutorial.org/.
thank you for replying.
i know, the update action is blank. but i am trying to edit this post
already made. therefore i am working through edit only.
actually i am trying to follow this tutorial and he is using 1.9.3
version of ROR, and i am working on 4, and thats creating alot of
issues.
thank you for replying.
i know, the update action is blank. but i am trying to edit this post
already made. therefore i am working through edit only.
actually i am trying to follow this tutorial and he is using 1.9.3
version of ROR, and i am working on 4, and thats creating alot of
issues.
Wow. Really find a newer tutorial. You are going to have such a translation problem between then and now that you are only going to hurt yourself. The only reason to mess with that version of Rails is if someone dumps a lot of money on you to upgrade it (rewrite it, at that distance) to current. The http://railstutorial.org is free to use on line and one of the best-written tutorials on any subject I have ever seen. It covers Rails 4.2, which is the current (soon to be less so with 5 coming out). I can't find a reference to Rails 1.9.3 (maybe you mean Ruby?), but if that's really the version, that's from 2007 or so. A lot has changed.