migration generation in 3.2 #5403

Closed
SentulAsia opened this Issue Mar 13, 2012 · 3 comments

Comments

Projects
None yet
2 participants

Rails migration will create string column 'show index new edit create update destroy' on scaffold
The migration generator should skip generating this column and properly create specified controller actions

Member

vijaydev commented Mar 13, 2012

Can you show how you generated the scaffold?

e.g:
rails g scaffold message content:text user_id:integer index create

the scaffold generator should handle special active record character such as index and create as controller actions instead of column on database with type string

Member

vijaydev commented Mar 13, 2012

You can't pass in action method names to the scaffold generator. By default it generates all the actions.

vijaydev closed this Mar 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment