RAILS PLUGIN: Ajax Scaffold File Upload plugin

Acer Aspire 7112 ???????? ??????? ???????? ???????????? ?
Samsung Syncmaster 940bw ??????? kia carens ??????????? hyundai terracan ??????????? ???????
Ecs 651c M ???????? ??????????? ?? ??????? ??????????? pdf ??????????? ?? ??????? ??????? ?????
Hp 3745 ??????? ??????????? ?? ??????? ???? ?????
??????? ??????? Odbc Ms Sql ??? ?????? ???????????
Intel Gma 950 ??????? ??????????? ?? ???????????? ??????????? ??????????? htc legend
??????? ????????? Realtek ??????????? ?? ???????????? ??? 33021 ??????????? ???????????? tv e72
??????? ??????? ?? Fax Modem ????????????? ?????? ??????????? ?? ??????? honda torneo ??????????? ?? ????????????
Pci ?????????? ????? ??????? ??????? ??????????? ?? ??????? ???? ??????
Hp Laserjet P 1005 ??????? ????? ??? ???????????? ????????
Ethernet Controller Xp ??????? ??????? ??????????? sony ericsson xperia x10
???????? ??????? R519
??????? Panasonic Nv Gs6 ??????? ??????????? ?? ??????? ????? ??????????? ?? ???????????? ?????????
Atheros Ar5006eg ??????? ??????????? ?? ???????????? ?????? ?????
???????? ??? ???????? ????? Dell
Lexmark 2300 Series ??????? ??????????? ?? ??????? ????
Samsung Pleomax Pwc 2000 ??????? ??????????? ?? ???????????? ??????????? jvc ??????????? ?? ??????? geely otaka
Acer Aspire 5315 ???????? ???????
??????? Semc Usb Flash ??????????? ???????????? ?????????? ????????? 1?
Samsung R540 Js05ru ???????? ??????????? ?? ???????????? ??? 2131
Sony Ericsson Z520 ???????? ??????????? ?? ???????????? ????? 4308 ??????????? ?? ??????? seat toledo
??????? ????? ??????? ??? Nvidia
Geforce 5500 ??????? ??????????? ?? ????????? ???????
Xerox Workcentre M15i ???????
???????? Intel Dg965ss ??????????? ?? ??????? subaru
Crystal Eye Webcam ???????
Starforce Windows 7 ??????? ???????
Epson 1670 ??????? Windows 7
Dell Studio 1555 ???????? ??????????? ???????????? openoffice
Realtek 8201cl ??????? ??????? toyota hiace ??????????? ?? ??????? ??????????? ??? 21093
Asus A8j ???????? ??????????? ?? ???????????? ??? ????? ??????? ???????????
Asus M50v ???????? Xp ??????????? ?? ???????????? ?????? ??? ???? ? ?????? ???????????
Canon Ru ???????? ??????????? ?? ??????? ?????? ??????? ??????????? ?? ?????? ? windows
Ati Hd 4600 ???????
Xerox Wc Pe114e ???????
??????? Samsung Gt S5620 Monte ??????????? ???????????? citroen c5
Sony Ericsson W810i ???????? Usb ??????????? ?? ??????? mitsubishi eclipse ??????? ??????????? ?? ????????? ?????
Radeon Xpress 1250 ??????? ??????????? ?? ??????? fiat
??????? Ati Radeon X1950 Gt ??????????? ?? ??????????? ???? ????? toyota celica ??????????? ?? ???????
??????? Radeon 9200 Win 7 ??????????? ?? ??????? ford
Philips Saa7134 ???????
Canyon Cnr Wcam43g ??????? ??????? ford expedition ???????????
Hp 1210 ???????
Hp Photosmart 7350 ???????
??????? Hp 6500 ??????????? ?? ??????? ?????? 460
Sata ??????? ??? ???????? Samsung ??????? ??????????? ?? ??????? suzuki
Nvidia ???????? 9600 Gso
???????? Amilo Pi 2530 ??????????? ?? ???????????? ????? 2
??????? Mirascan Benq ??????????? ?? ??????? ??????????? ?? ??????? ??? 514
Lenovo S10 3s ???????? ??????????? ?? ???????????? starline a8 ??????????? ?? ??????? ?????????? ????????
Acer Aspire 4315 ???????? ???????
Genius G Pen 4500 ???????? 31105 ????? ??????????? ?? ???????
???????? Dell Inspiron 1520
Asus Dvd Rw ??????? ??????????? ?? ????????????? ???????
??????? Acpi Hpq0004 ??????????? ?? ??????? chery qq6
Canon 3110 ??????? g e c k ??????????? ??? ??? ???????????
Mustek 1200ub Plus ??????? ??????? ?????? ???? ??????????? ?? ??????? ?????? ??????????? nokia n8
??????? ???????? ?? Lg Kp500 ?????? ??????? ?????? ???????????
??????? ???????? Xp Sony Vaio nissan pulsar ??????????? ?? ??????? ??????????? ?? ??????? ?????????? bmw
??????? ???????? Xerox 3122
??????? Hd 4730 ??????? ??????????? nokia x6
??????? ??? ?????? Transcend
Hp Lj 1010 ??????? ??????????? ?? ???????? ??????????? hyundai elantra ??????????? ?? ???????
??????? Mb Oc 318
??????? ??????? Canon Mf 3228
Sis 661 ??????? ??????? ??????????? exchange server
???????? ??? ??????? Sven magicar 5 ??????????? ??????????? ?? ??????? megane ii
Epson Stylus C63 ??????? ??????????? ?? ??????? ?????? ??????????? ?? ???????????? ???????????? ??????
Canon 3000 Windows 7 ???????
???????? Msi Fx600 ??????????? ?? ???????????? honda jazz ??????? ??????????? ?? ???????????? ???
???????? ??? ????????? Samsung N220
??????? Hp 400 ??????????? maxima
??????? Intel D845gerg2
Agp ??????? ??? Windows 7
Canon 2016 ???????
Hp F4180 ??????? ??????????? ?? ??????? ? ????????????
Biostar P4m80 M4 ???????? ??????????? ?? ???????? ???
A7n8x X ???????? Lan
Nvidia Riva Tnt ??????? ??????????? ?????? 3d v8 ??????????? ?? ???????????? ????? ???
Gigabyte Ga 965p Ds3 ???????? ??????????? ???????????? ???????????
Amilo A1667g ????????
Workcentre 3119 ??????? Xp ??????? ??????????? forester
??????? ???????? ??? ?????????? Geforce4
??????? Nvidia Geforce Mx
??????? Ati Radeon 2600 ???????
??????? Hp Photosmart B110b ??????????? ?? ???????????? ?????????? ???? golf ??????????? ?? ????????????
??????? ??? ?????????? Geforce 5200 ????????????? ???????????? ??????????? ??????? ??????????? ?? ???????????? volkswagen polo
??????? Avertv Studio 709 microsoft windows 7 ??????????? ??????????????
Epson Lq 100 ??????? Xp ???????????? ??????????? ?? ??????????????
Msi Cr610 ???????? pt cruiser ??????????? ?? ???????
Geforce 2mx ??????? ???????
A4tech X7 ???? ??????? ???????
Motorola L7e ??????? ??????????? ?? ??????? chevrolet aveo
???????? ??? ???????? Genius
Geforce 6800gs ???????
Nvidia G100 ??????? ??????????? ? ???????? ?????
???????? ??? Acer Aspire 5738 ??????????? ?? ??????????? ??????? ????? ???????????? ??????????? ???????
??????? ??????? Avertv Studio 707 ?????? ??????????? ?? ???????
??????? Touchpad Asus ??????????? ?? ??????? daewoo espero
Dell Inspiron 1545 ????????

????????? ???????????? ?? ??????????? ???????? ford fusion ??????????? ????????? ???? ???????? ??????????? ??????? ???????? ??????????? ?? ??????? ????????? ???????? ?????????? ?????????? ?? ??????? ???? ????????? ??????? ??????????? ??????????? ????? ?????? ????? ???????? ???????? ???????? ???????????? ??????????? sx4 ??????????? ?????? ??????????? ??????? ???????????? ??????????? ???????? ??? 2104 ??????????? ?? ??????? ??????????? ?? ??????? ???? toyota ???????? ?????? ?? ?????????? ?????????? 2108 ??????????? ??????? ????? ????????????? ???? ???????? ??????????? ???????????? d5000 ???????? ?????????? ?????????? ???????? ???????? ????????????? ???????????? ???????? ??????????????????? ???? ???????? ??????????? ?? ???????????? ??????????? sony ??????????? ??? ????????? ?????????? ??????????? ??????????? ???????? ??????????? ?? ??????? ??????? ??????? ?????? ?????????????? ??????? ??????? ???????? ??????????? ?? ???????????? iphone 3gs ??????????? ?? ?????????? ????????????????? ??????? ???????? ??????????? ?????????? ??????????? ?? ????? ?????? ???????? ?????????????? ????? ???????? ??????????? ?? ??????? nissan ?????? ????????????? ??????????? ???????? ???????? ??????????? ? ????????? ????????? ???? ???????? ?????? ???? ???????? ??????????????? ?????????? ??? ??????????? ???????? ???????? ? ???????????? ??????????????? ??????????? ???????? ??????? ???????????? ???????? ??????????? ?? ??????? ????????? 405 ??????????? ?? ???????????? ????? ?5 ??????????? ???? ???????? ?????? ??????????? ?? ??????? ??? ??????? ???????? ?? ?????????? ????????????? ???????? ??????????? ?? ???????????? 2108 ?????? ???????? ???????? ???????? ??????????? ???????????? gs 8300 ? ??????????? ?? ???????? ??? ???????? ?????? ?????????? ????????? ??????????? karcher ??????????? ?? ???????????? ??????????? ?? ???????????? citroen c5 ???????????? ????????????? ???????? ??????????? ?? ??????? ??? chery amulet ??????????? ?? ??????? ???????? ????? ? ??????? ?????????? ????????? ???????? ???? ???????? ???????? ?? ??????????? ?????????? ??????????? ?? ????????? ???????? ?????? ??????????????? ??????????? ??????? ???????? ?? ?? htc 8181 ??????????? ???????????? skoda ??????????? ?? ???????????? ??????? ???????? ????? ???????? ?????????????? ??????????? ?? ??????? ??????????? ??????????? ?? ??????? ??????? ??????? ???????? ?????? ?????????? ?????? ?????????? vw passat ??????????? ?? ???????????? ???????? ??????????? ???????? ????? ???????????? volkswagen golf ??????????? ?????? ????????? ???????? ?????? ???????? ??????????? ?????????? ?? ??????? ???????? ??????????? ????? ?? 7 ???????? ??????? ???????? ?????????????? ?????? ??????????? ??????? ???????????????? ?????????? ???????? ??????????? ?? ???????????? ??????? ??????????? ???????????? corolla ????????????? ????????????? ??????????? ???????? ?????? ???????? ????????????? ???? ?????????? ? ???????????? ??????? ???????? ?????????? ?????? ???????? ??????????? ?? ???????????? ????? ?????? ??????????? ?? ??????? ???????? ?????????? ??????? ???????? ??????? ??????????? ?? ???????????? caldina opel vivaro ??????? ??????????? ???????? ??????? ???????? ??????????? ??????? ???????? ????? ??????????? ??????????? ??????????? ??????????? d link dir 615 ????????????? ???????? ???????? ??????????? ?? ???????????? ?????? ??????? ???????? ???????? ?????? aveo ??????????? ?? ???????????? ??????????? 1? 8.1 ???????? ?? ???? ?????? ???????????? ??????????? ?? ???????????? ??? 21061 ????????? ???? ???????? ??????????? ?? ???????????? ??????????? jvc ???????? ???????????? ?????? ????? ???????? ??????????????? ??????????? ???????? ?????????????? ????? ???????? ????????????? ? ?????????????? ?????? ??????????? ??????????? ???????????? ??????? 7 ???????? ?????? ?? ??? accord ??????????? ?? ???????????? ??????????? ???????? ??????? ???????? ?????? ??????? ??????????? ?? ???????????? ??????????? ?? ???????????? hyundai trajet ??????? ???????? ??????????????? ???????? ??????? ???????? ?????? ?? ??????? lexus rx300 ??????????? ?? ??????? ??????????? acer ????????? ???? ???????? ?????? 2010 mercedes 124 ??????????? ?? ??????? ???????? ??????????????? ??? 2010 ?????????????? ????????? ??????????? ???????? ?????? ???? ??????????? ??? ???????? ??? ???????????????????? ??????????? toyota sprinter ??????????? ?? ??????? ?????????????? ?????? ???????? ??????????? ???? ?????? ???????????? ???? ???????? ?????? microsoft office ??????????? ???????????? ??????????? ?? ???????????? ??? 2103 ??????????????? ???????????? ?????? ???????? ?????? ? ????? ??????????? ??????? ???????? ????????? ? ?????????? windows server 2003 ??????????? ??????? mac os x ???????? ??????????? ???????? ?????? ?????????? ?????????????? ??????????? ?? ???????????? ????????????? ?????? ???????? ?????? ?????? ??? ??????????? ?? ???????? ??????????? ?????? ??????? ? ?????????????? ???????? skoda fabia ??????????? ?? ???????????? ??????????? ?? ??????? ??? 2107 ????????????? ????????? ???????? peugeot 207 ??????????? ?? ???????????? ??????????? ??????? ???????? ?????? ????? ?????????? ??????????? ??????????? ?? ???????????? bmw 3 ????????????? ?????? ???????? ???????? ???????? ???? ???????? ?????? ?? ????????????? ????? ??????????? ?? ????????? nissan primastar ??????????? ????????? ?????????? ????? ?????? ???????? ??????????? ???????????? samsung gt c3010 mazda 323f ??????????? ??????? ???????? ???????????? Esp openoffice org ??????????? xperia x10 ??????????? ???????????? ???????????????? ?????? ???????? ???????????????? ????????????? ???????? ?????? ??????????? ?? ??????? ?????? ?????? ???????? ??????? ?????????? citroen ??????????? ?? ???????????? ???????? ?????? ?????? ????????????? ?????????? ????????? ????????????????????? ????????? ???????? ???????? ?????? ?????? ??? 5337 ??????????? ?? ???????

7 Responses to “RAILS PLUGIN: Ajax Scaffold File Upload plugin”

  1. Curtis Says:

    This is great! Thanks!

  2. YodaYid Says:

    Very nice :-)

    I do have one issue though - this piece of code seems to be breaking my shared partials:

    if partial_path.include?('/')
    if (erb_template_exists?("#{path}/_#{partial_name}"))
    path, partial_name = partial_pieces(partial_name)
    return "#{path}/#{partial_name}"
    end
    end

    I do have an slightly unusual situation - most of my controllers are in an ‘admin’ directory (e.g. ‘admin/products’), and the shared templates are simply under ‘admin’.

    The result is this:
    render :partial => ‘admin/header’
    results in
    No rhtml, rxml, rjs or delegate template found for admin/products/_header in ./script/../config/../app/views

    Can I safely remove the section of code I pasted above?

    Thanks,
    –YY

  3. YodaYid Says:

    This is my (quick) fix, which seems to work for me so far:

    if partial_path.include?(’/')
    if (erb_template_exists?(”#{path}/_#{partial_name}”))
    #path, partial_name = partial_pieces(partial_name)
    return “#{path}/#{partial_name}”
    else
    path, partial_name = partial_pieces(partial_name)
    if (erb_template_exists?(”#{path}/_#{partial_name}”))
    return “#{path}/#{partial_name}”
    end
    end
    end

    Hopefully I got the formatting right this time :-P

  4. Gary Says:

    This may be a silly question but how do I mark a database field to be a file upload?

  5. StuartD Says:

    Excellent work - this is exactly what I’m looking for - have you thought about getting this working with edge?

  6. MeanderingCode Says:

    It doesn’t seem to be rendering partials correctly…could easily be a problem on my end, but…

    ActionView::ActionViewError in Content_pages#view_default

    Showing app/views/layouts/application.rhtml where line #46 raised:

    No rhtml, rxml, rjs or delegate template found for content_pages/_suckerfish in script/../config/../app/views

    Extracted source (around line #46):

    43: ‘page/menubar’, :action =>
    44: ’suckerfish’) %–>
    45: ‘menu_items/suckerfish’,
    46: :locals => {:items => session[:menu].get_menu(0)} %>
    47:
    48:
    49:

    RAILS_ROOT: script/../config/..

    Application Trace :

    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:399:in `find_template_extension_for’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:335:in `pick_template_extension’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:249:in `render_file’
    vendor/plugins/ajaxscaffoldp/lib/ajax_scaffold_plugin.rb:467:in `render’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/partials.rb:59:in `render_partial’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:26:in `benchmark’
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure’
    /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:26:in `benchmark’
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/partials.rb:58:in `render_partial’
    vendor/plugins/ajaxscaffoldp/lib/ajax_scaffold_plugin.rb:481:in `render’
    #{RAILS_ROOT}/app/views/layouts/application.rhtml:46:in `_run_rhtml_47app47views47layouts47application46rhtml’

    It should look for _suckerfish.rhtml in the app/views/menu_items folder, but it’s looking in the app/views/content_pages folder…I think it has to do with the parse_partial_path method on line 488 of vendor/plugins/ajaxscaffoldp/lib/ajax_scaffold_plugin.rb (called from the render method living right before it in the code), but this doesn’t happen before install / after remove of ajaxscaffoldp_upload.

    Could this have to do with being in an iframe? I’m pretty new to all this, so…

    Thanks for anyone’s thoughts.

  7. Jon Says:

    Nice work, a real time saver! Much thanks!

Leave a Reply

You must be logged in to post a comment.