Closed christopherhein closed 9 years ago
Yeah, I knew this is a bug but was too lazy to fix it. :grin: A PR and a test for this would be great! :heart_decoration:
Awesome, I noticed this after I commented and it might be a dupe… https://github.com/apotonick/roar-rails/issues/67 although I could be wrong, I'll try and get something running and put in a PR…
Ah yeah, right, that is indeed a duplicate! I knew I've seen this issue before but didn't remember #67 - very rare, but sometimes even I do forget about one of my 213498761123123440 issues. :wink:
PR would be great!
I've been using the
include Roar::Rails::ControllerAdditions::Render
helpers so that I can still make use of classic render, but apparently it doesn't accept extra params, such as status code… I maybe mistaken but it looks like https://github.com/apotonick/roar-rails/blob/master/lib/roar/rails/controller_additions.rb#L80-L83 only cares about the format:I have a simple fix fork here… https://github.com/christopherhein/roar-rails/blob/render-status-code/lib/roar/rails/controller_additions.rb#L80-L84 I've been trying to figure out if there are other params that should be passed correctly…
Let me know what you think… I can always put a pull request… Thanks!