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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -