JangoSteve / remotipart

Rails jQuery file uploads via standard Rails "remote: true" forms.
http://os.alfajango.com/remotipart
Other
1k stars 215 forks source link

Rails 5 + remotipart not working #139

Closed francesco-loreti closed 8 years ago

francesco-loreti commented 8 years ago

If I use the gem of remotepart 1.2 and I start the application on windows, I have this error: "C:/Ruby22/lib/ruby/gems/2.2.0/bundler/gems/rails-2b90048395ad/actionpack/lib/action_dispatch/middleware/stack.rb:108:in `assert_index': No such middleware to insert after: ActionDispatch::ParamsParser (RuntimeError) ". Any solution?

I have tried with github master branch but I have same problem. Thanks

utkukaynar commented 8 years ago

Same problem here with Mac & rbenv.

AndreasWurm commented 8 years ago

you could temporarily use gem 'remotipart', github: 'mshibuya/remotipart', ref: '3a6acb3'

jasonivers commented 8 years ago

There is a pull request for this... please merge https://github.com/JangoSteve/remotipart/pull/151

colinyoung commented 8 years ago

Agreed @JangoSteve, would love to have this merged esp. now that Rails 5 is released.

mahemoff commented 8 years ago

@AndreasWurm I think the ref should be 88d9a7 (https://github.com/mshibuya/remotipart/commit/88d9a7d55bde66acb6cf3a3c6036a5a1fc991d5e).

gem 'remotipart', github: 'mshibuya/remotipart', ref: '88d9a7'

mshibuya commented 8 years ago

88d9a7d55bde66acb6cf3a3c6036a5a1fc991d5e is in the master now.

joshkestenberg commented 6 years ago

Hey @mshibuya Master still breaks my code! I'm using your fix gem 'remotipart', github: 'mshibuya/remotipart', ref: '88d9a7' and it's working now. If I just use gem 'remotipart', '~>1.2' as per the readme, when i try to access any part of my app i get this error ActionView::Template::Error: ActionView::Helpers::ControllerHelper#params delegated to controller.params, but controller is nil: followed by like a thousand lines of error msg, and a generic error msg in the console.

mshibuya commented 6 years ago

README is old, the latest version is 1.4.2 now. Just use gem 'remotipart' in your Gemfile.

joshkestenberg commented 6 years ago

1.4.2 actually isn't working either (gem 'remotipart'). Only 88d9a7 from your repo has worked so far.

mshibuya commented 6 years ago

Your issue appears to be #194, not this.