New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails Guides - Getting Started #13764
Comments
Thanks for reporting this, I wouldn't have realized that but now that you pointed it out I can see that could indeed cause confusion, especially in cases like I don't see why we couldn't substitute that with something like "article" (as in blog article). Do you think that would work? cc @fxn |
That is a good point, 👍 on using a different model. |
I'm 👍 on this. I like |
I would like to take up this issue. I assume this means changing the Getting Started app code also /cc @senny |
@prathamesh-sonpatki yes it does. |
@fxn i saw that you have updated Gemfile in Getting Started app to use Rails 4.1.0. How can i do that locally? Building gems by |
I did it by hand, because it cannot be edited after release. |
Oh by the way, I have in mind deleting that sample app, it does not seem to be well maintained. |
- Used Article model instead of Post as it may confuse with 'post' requests - Tried to wrap the guide to 80 chars lines as much as possible. - Removed unused image - Fixes rails#13764
Hi, just wanted to THANK YOU for this great resource and pass along something that I found confusing....
Being a total newbie to rails and going through the first exercises of creating a blog, I keep getting confused between post as a method and post as a resource. It might be more helpful if the resource in the example was named something other than "post" for clarity.
For example, in this section I'm not sure whether we are talking about the resource post or the the action post.
def create
@post = Post.new(post_params)
@post.save
redirect_to @post
end
private
def post_params
params.require(:post).permit(:title, :text)
end
The text was updated successfully, but these errors were encountered: