Skip to content

:url parameters #6

@jrmurad

Description

@jrmurad

Using the swf_upload_area helper, I passed a route to :url along with an option like so:

:url => upload_images_path(:image_class => image_class)

The helper expands this as:

/images/upload?image_class=Photo

While the controller method ("upload", in this case) is called, it does not receive the parameter:

params[:image_class] does not exist (other params are there: Filename, authenticity_token, Upload, Filedata)

I tried to see if I could fix the problem within the javascript but I didn't see anything obvious. Is it the swf file which needs to change?

[Here's my route, for reference: map.resources :images, :collection => { :remove => :put, :upload => :post }, :member => { :toggle => :get }]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions