search for: contactform

Displaying 3 results from an estimated 3 matches for "contactform".

Did you mean: contact_form
2013 May 27
6
Headache with Ajax in Rails using jQuery
...everything I found on Google but still not successful. Initially, I tried the Ajax approach offered by Rails but did not work, so I turned to jQuery for Ajax. Basically, I want to submit a form using Ajax: <%= form_tag("/main/contact", :method => "post", :id => "contactForm") do %> Name: <%= text_field_tag(:name) %><br/> Message: <%= text_area_tag(:message) %> <%= submit_tag "Send" %> <% end %> <div id="result"></div> And here''s my Ajax code in jQuery: <script type="t...
2006 Mar 23
3
How to redisplay submitted data on validation error?
Hi! If i have an object it''s easy. But i''m making a simple contact form and i check if email address is correct. If it''s not i redisplay the form with the info that there was an error (should i use redirect_to or render :action? what''s the difference?), but all previously submitted data is lost. I tried creating variables using names of the form fields, but
2006 Feb 03
5
writing my own generator
Hi all, I wanted to write my own generator. What would be a good starting point. Is there any documentation on this, Best practices, etc? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060203/c64c4730/attachment.html