ruby on rails - Options for running controller method from view -


ruby on rails 3.2: made table, model , controller. want run "new" method in controller. off top of head can think of form run method. other options there run controller methods?

in particular run "new" method when viewing view files. thank you

well, can add new action link, use form, , call action using ajax. other alternative other violate mvc.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -