There may be chance of form without submit button ..
In your example might be form is submitting in script by using the
javascript function submit() inside the script tag, when any of the
field changed inside the form
<script>
$("#student_name").change(function(){
$("#sree").submit()
})
</script>
<form id='sree'>
<%=text_field 'student','name'%>
</form>
Pito Salas wrote:
> This is probably a stupid question but I am confused...
>
> I see an example in the 3d Edition of Agile Dev with Rails (page 539)
> where a simple calculator view, with two text boxes for numbers and a
> dropdown for what operation to perform, does not mention a submit button
> or gesture.
>
> I don't understand that. Yes, the form_tag does indicate an :action => ,
> but what triggers that if there is no <%= submit_tag 'Save' %>?
>
> Thanks!
>
> Pito
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.