GitXplorerGitXplorer
i

10-routes-views-controllers

public
0 stars
15 forks
0 issues

Commits

List of commits on branch master.
Unverified
0c8d90c5acd4a05afee9d4e27a770773575fc4df

add code from lecture and challenges

iipc103 committed 8 years ago
Unverified
3caaab21ffd0a5adeeb93aaa2189f3c1c2352fe3

Create README.md

iipc103 committed 8 years ago
Unverified
fd089110e2c09fe6c3721d3c7ef6fa05d539a711

add challenge to readme

iipc103 committed 8 years ago
Unverified
f3b3bc00ef4911a41c4f2502815243ba812855f1

add starter code

iipc103 committed 8 years ago

README

The README file for this repository.

CHALLENGE - Build out a route, controller action and view that displays all of the Tweets. Each tweet should link to a tweets show page.

POST LECTURE CHALLENGES - Build out a route, controller action and view that displays all of the Tweets. Each tweet should link to a tweets show page.

  1. I want to use mass assignment in Rails. Meaning, I want to be able to do this in my create action in my TweetController.

tweet = Tweet.create(params[:tweet])

I can't do this because it's not secure. What security feature in Rails will allow me to do this?

  1. My edit and new forms look very similar... I want to be able to use the same form for new and for edit.
  • A different Rails helper to generate the form - form_tag won't work because I can't dynamically set the method and the action
  • A way to render HTML on two different pages