mardi 31 mars 2015

A form is there inside joinus method of , how to submit the form values on rails?what should I do?

I have controller Pages which have methods like home , aboutus , joinus ,contactus and mad.


joinus also has a form given below.


JOIN US


Name


Email


Address


Number


SUBMIT


when I click on submit, Routing error is coming


No route matches [POST] "/pages/joinus"


Rails.root: C:/NEW/charityapp


Application Trace | Framework Trace | Full Trace Routes


Routes match in priority from top to bottom


Helper HTTP Verb Path Controller#Action Path / Url

pages_home_path GET /pages/home(.:format) pages#home root_path GET / pages#home pages_aboutus_path GET /pages/aboutus(.:format) pages#aboutus pages_joinus_path GET /pages/joinus(.:format) pages#joinus pages_contactus_path GET /pages/contactus(.:format) pages#contactus pages_mad_path GET /pages/mad(.:format) pages#mad


Aucun commentaire:

Enregistrer un commentaire