Acts_as_attachment plugin + rails

Hello,

Is it possible to use the acts_as_attachment plugin with a remote_form ?
because when i try to use it i don’t get the file parameter. When i use
it without ajax it works perfectly.

thnx in advance
Daan P.

On 10/1/06, Daan P. [email protected] wrote:

Hello,

Is it possible to use the acts_as_attachment plugin with a remote_form ?
because when i try to use it i don’t get the file parameter. When i use
it without ajax it works perfectly.

thnx in advance
Daan P.

Javascript doesn’t have access to your files, so it’s not really
anything with the plugin. You can, however, upload to a hidden
iframe. It’s very hackish, though.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

Rick O. wrote:

On 10/1/06, Daan P. [email protected] wrote:

Hello,

Is it possible to use the acts_as_attachment plugin with a remote_form ?
because when i try to use it i don’t get the file parameter. When i use
it without ajax it works perfectly.

thnx in advance
Daan P.

Javascript doesn’t have access to your files, so it’s not really
anything with the plugin. You can, however, upload to a hidden
iframe. It’s very hackish, though.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

is it possible to link to an rjs file with a regular form ? or can i do
some ajax commands in the iframe ?

gr
Daan P.

On Oct 1, 2006, at 11:45 AM, Daan P. wrote:

it without ajax it works perfectly.
Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

is it possible to link to an rjs file with a regular form ? or can
i do
some ajax commands in the iframe ?

gr
Daan P.

Hey Daan-

There is a plugin called respond_to_parent that will allow you to

return rjs to the iframe and have it eval’ed in the parent window.

http://sean.treadway.info/svn/plugins/responds_to_parent/README

-Ezra

does anybody know how to install the dang thing?

http://weblog.techno-weenie.net/articles/acts_as_attachment

I got as far as this:

rake test_plugins PLUGIN=acts_as_attachement
(in /x/home/foobar/docs/thefoobar.com/thefoobar)
/usr/bin/ruby18 -Ilib:test
“/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb”

real helpful instructions there buddy :stuck_out_tongue:

I manually create the tables, but still no luck.
http://weblog.techno-weenie.net/articles/acts_as_attachment

Ezra Z. wrote:

On Oct 1, 2006, at 11:45 AM, Daan P. wrote:

it without ajax it works perfectly.
Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

is it possible to link to an rjs file with a regular form ? or can
i do
some ajax commands in the iframe ?

gr
Daan P.

Hey Daan-

There is a plugin called respond_to_parent that will allow you to
return rjs to the iframe and have it eval’ed in the parent window.

http://sean.treadway.info/svn/plugins/responds_to_parent/README

-Ezra

thnx :stuck_out_tongue: it works great :slight_smile:
but now i’m having another problem with act as attachment … when i
generate my thumbnails they aren’t saved on my filesystm only in my db

grts
Daan P.

rake test_plugins PLUGIN=acts_as_attachement
(in /x/home/foobar/docs/thefoobar.com/thefoobar)
/usr/bin/ruby18 -Ilib:test
“/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb”

real helpful stack trace there buddy.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs