Update controller scaffold templates #78

Merged
merged 1 commit into from Oct 9, 2012

Conversation

Projects
None yet
2 participants
Contributor

zesty commented Oct 9, 2012

Previously, one would get mass assignment and route errors. Now all tests pass. Brought in some code from rails/master for the mass assignment issue.

Tested with rails 3.2.8 clean app with vanilla install of minitest-rails per github docs.

test loop, fwiw:

alias br='bundle exec rake'

bundle; br db:drop:all; br db:create:all; rails d scaffold user name; rails g scaffold user name; br db:migrate; br test

rails d scaffold user name # reset for spec loop

bundle; br db:drop:all; br db:create:all; rails d scaffold user name --spec; rails g scaffold user name --spec; br db:migrate; br test

@blowmage blowmage added a commit that referenced this pull request Oct 9, 2012

@blowmage blowmage Merge pull request #78 from zesty/master
Update controller scaffold templates.
Thanks to @zesty for the submission!
45b69dc

@blowmage blowmage merged commit 45b69dc into blowmage:master Oct 9, 2012

1 check failed

default The Travis build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment