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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -