|
|
Registered tutorials: 501 Registered Users: 22759
|
|
Rating: 0 out of 0 votes cast
Category: Ruby on Rails
|
RubyOnRails: AJAX File Upload Hint
Abstract: This tutorials shows how to organize file uploading using Ajax and Ruby on Rails
If you have an Ajax form (like in Ajaxscaffold) and you want to attach 1+ files to object you edit, you can follow my path (I don’t guarantee it is a shortest path):
- Define your upload_status action:
def upload_status
render :nothing
end
- Outside of your AJAX form (in the case of Ajaxscaffold, after closing form tag in _new_edit.rhtml), setup an upload form in a partial (in _binary_file.rhtml)
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
230 |
| Unique Hits: |
187 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0 |
0 |
0.3 |
0.3 |
4.1 |
5.6 |
| Current |
0 |
0 |
0 |
0 |
0 |
0 |
| Previous |
0 |
0 |
0 |
0 |
0 |
0 |
| Jun 28 |
0 |
0 |
0 |
0 |
10 |
13 |
| Jun 27 |
0 |
0 |
0 |
0 |
7 |
9 |
| Jun 26 |
0 |
0 |
0 |
0 |
4 |
5 |
| Jun 25 |
0 |
0 |
0 |
0 |
0 |
0 |
| Jun 24 |
0 |
0 |
0 |
0 |
3 |
4 |
| Jun 23 |
0 |
0 |
0 |
0 |
0 |
0 |
| Jun 22 |
0 |
0 |
0 |
0 |
9 |
11 |
| Jun 21 |
0 |
0 |
3 |
3 |
8 |
14 |
| Highest |
4 |
5 |
11 |
12 |
36 |
43 |
|
|
|
Script Execution Time: 0.28217 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|