Ruby on Rails
Friday, January 26, 2018
Sorry I've seen now the word 'gems'
My instructions are to make override of scaffold generator.
Mauro
2018-01-26 13:06 GMT+01:00 Mauro Locatelli <crivotz@gmail.com>:
Yes, you canModelproject_folder/lib/templates/active_record/model/model.rb Controllerproject_folder/lib/templates/rails/scaffold_controller/contr oller.rb Viewsproject_folder/lib/templates/erb/scaffold/ All the original file can be founded inside railties folder (bundle show railties)You can also add views editing scaffold_generator.rbCheersMauro2018-01-26 12:52 GMT+01:00 fugee ohu <fugee279@gmail.com>:I can override any gem's controllers and views by creating them in my app?--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com .
To post to this group, send email to rubyonrails-talk@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/51d6633b- .81cc-41ef-b548-575feb06f086% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANnJYrqXiWCGi8yayXi4OCJSRxq_D4m6Er8fzBbPjf7Ak4%2BuVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment