Skip to content
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

articles#show action, now with more pixie dust. #63

Open
jrgifford opened this issue Sep 11, 2013 · 2 comments
Open

articles#show action, now with more pixie dust. #63

jrgifford opened this issue Sep 11, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@jrgifford
Copy link
Member

Update this to reflect what the codebase looks like here

Open up the `app/controllers/articles_controller.rb` file in your editor.


![](images/010.png)

The part we are interested in is the `def show` action.



    # GET /articles/1
    # GET /articles/1.json
    def show
      respond_to do |format|
        format.html # show.html.erb
        format.json { render json: @article }
      end
    end

@ghost ghost assigned jrgifford Sep 11, 2013
@jrgifford
Copy link
Member Author

solution: do pseudo code for the explanation, saying "this is whats going on behind the scenes". Or better yet, use ri to inject itself into it to find out what the heck it's actually doing, and show them how to use ri and rdoc to find things.

@jrgifford
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant