When You’re Stuck On The Ruby On Rails Getting Started Guide

actioncontroller urlgenerationerror in posts#index no route matches action show controller posts

Was tracking along my journey of learning Ruby on Rails (which is an excellent tool), but the getting started guide isn’t always easy to follow. For once suddenly I encountered a problem above which caused by a bug on the sample code.

After spending half an hour or so I figured out the getting started guide was version controller on their git repository. You can clone the rails repository using git clone https://github.com/rails/rails.git. The getting started guide is located at guides/source/getting_started.md

Also interestingly, someone has fixed the bug I saw on the git HEAD. So the next time you had problem with the tutorial, one thing to try is check the latest tutorial version on git: https://github.com/rails/rails/blob/master/guides/source/getting_started.md

And ofcourse if you spot another bug you should contribute the fix by submitting a pull request :).

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s