dimanche 26 juillet 2015

Check form submitted values in ruby on rails

On my rails app I have a form on /addfiles where user can add file path in text boxes and this form is submitted to /remotefiles

I have created a route match '/remotefiles' => 'main#remotefiles'

and function in main controller

def remotefiles
    render layout: false
end

and add remotefiles.html.haml in views/main

how can I show these submitted values on remotefiles, I think it can be done with render but not sure how can I use it to pass form values and show them on view.

Is there a way to check form data in ruby on rails just like php print_r function ?

Aucun commentaire:

Enregistrer un commentaire