Is there a way to generate a subset of methods in the controller using scaffold instead of the regular scaffold?
For example: Only create new and show?
I am using rails 3, ruby 1.9.2
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I do not think the default rails scaffold generator supports this in Rails 3.
However, this can be accomplished using the nifty-generators gem:
https://github.com/ryanb/nifty-generators