Hii all ,

          I am trying to create a button that, when clicked on, calls a
method in a controller . I am thinking that button_to_function is good
to use for that i made htnl viwe like

<h1>File Upload</h1>

<p><label for="upload_file">Select File</label> :
<%= file_field 'upload', 'datafile' %></p>
<%= button_to_function  "UploadFile","alert('Hello world!')"%>
<%=button_to_function 'upload', remote_function({:action
=>'uploadFile'}, :controller => 'UploadController') %>

but when i clicked on upload button nothing happen could anyone suggest
me how to this

-- 
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.

Reply via email to