fredwu / api_taster

A quick and easy way to visually test your Rails application's API.
http://fredwu.github.com/api_taster
727 stars 85 forks source link

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

Open nileshtrivedi opened 9 years ago

nileshtrivedi commented 9 years ago

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

mariochavez commented 9 years ago

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.

ArneZsng commented 9 years ago

Any updates here?

astr0gator commented 9 years ago

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

omerpucit commented 8 years ago

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