Rails view isn't passing the data to the controller -


If the mailer is the way to work I have tried to call the console problem is that content variable appears empty is. So when I contact the mailer with console [heroco] Calling contact_mail so it works. I'm not sure why

controller
  

I also

<: post] [: email] Find out about def contact_email email and passing content email = params [: email] content = params [: content] ContactMailer.contact_email (email, content) Deliver redirect_to contact_path, notice: "Message Sent" and

Show
  & lt;% = form_tag (contact_email_path) & gt; & Lt; div class = "form-group" & gt; & Lt;% = label_tag 'Email', 'Email'% & gt; & Lt;% = text_field_tag ​​'email', zero, category: 'form-control', placeholder: 'your email address'% & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt;% = label_tag 'content', 'content'% & gt; & Lt;% = text_area_tag 'content', zero, category: 'form-control', lines: 4, placeholder: 'content'% & gt; & Lt; / Div & gt; & Lt;% = submit_tag Zero, Class: 'BTN BTN-Default BTN-Near Bridges'%' gt; & Lt;% end% & gt;    

way
  Match '/ Contact_email', 'Pages # Contact_email ", through" post "  

Harakok log
  2014-04-23T22: 25: 25.169161 + 00: 00 Horoku [router]: at = info method = POST path = / contact_email host = Hs-staging.herokuapp com request_id = 6f3753a7-10a0-4354-86b0-81893afefc52 fwd = "108.23.126.184" dyno = web.1 connect = 4ms service = 2276ms status = 302 bytes = 659 2014-04-23T22: 25: 25.430981 + 00: 00 Heroko [router]: at = info method = GET path = / Contact Host = hs-staging.herokuapp.com request_id = 1c5081eb-eb5d-48eb-9d58-8c699d12f6a3 fwd = "108.23.126.184" dyno = web.1 connect = 1ms service = 45ms position = 200 bytes = 9 356    

So I think for him A .text is required. Even if the email is being sent to the client even if you are looking at email email, it is not being used ...

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -