page app without any page refresh. So I have a button 'Add', onclick it
inserts in a DOM a simple remote:true form and when I try to submit this
form - nothing happens BUT if i refresh the page - it works. Guess some
handler is absent but not sure. Advise please. Here's my form
<%= form_tag(:add_task, method: 'post', remote: true) do %>
<span class="glyphicon glyphicon-plus"></span>
<%= text_field(:task,:project_id,type: 'hidden',value:
<%= text_field(:task,:name,class: 'form-control
task_field', placeholder: 'Start typing here to create a task...')%>
<%= button_tag('Add task',class:'btn btn-add_task') %>
<% end %>
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3793fb55424bbc0e768e149163902699%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.