api_taster icon indicating copy to clipboard operation
api_taster copied to clipboard

api_taster (~> 0.8.4) depends on rails (~> 4.1.0). Cannot be used with Rails 4.2

Open nileshtrivedi opened this issue 9 years ago • 4 comments

And therefore, Bundler ends up using version 0.6.0 instead. Looks like a fresh gem needs to be minted.

nileshtrivedi avatar Mar 04 '15 11:03 nileshtrivedi

Hello @nileshtrivedi is more than just bumping versions. There are changes in rails 4.2 that will requiere changes on api_taster.

Looks like form_builder in Rails 4.2 did change and is causing an issue with api_taster form_builder.rb

undefined local variable or method `flush_output_buffer' for

I'll try to take a look on this by the weekend.

mariochavez avatar Mar 06 '15 19:03 mariochavez

Any updates here?

ArneZsng avatar Apr 19 '15 19:04 ArneZsng

Hi folks! 4.2. is quite widespread today. Any news on that issue? @fredwu @mariochavez

astr0gator avatar Jul 14 '15 13:07 astr0gator

This issue is relate to this class

http://www.rubydoc.info/docs/rails/3.1.1/ActionView/Helpers/CaptureHelper#flush_output_buffer-instance_method

just download the source code and add method inside form_builder.rb file

For the time being if you just do like

def flush_output_buffer if output_buffer && !output_buffer.empty? response.body_parts << output_buffer self.output_buffer = output_buffer[0,0] nil end end

omerpucit avatar Mar 22 '16 09:03 omerpucit