Git Product home page Git Product logo

Comments (12)

presidentbeef avatar presidentbeef commented on July 24, 2024

Hi Rebecca,

Thank you for reporting this problem. I have seen it before, but thought it was an isolated problem.

I will be looking into it.

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

Okay, it appears the problem is that Brakeman is not handling render :layout => ... inside of views properly. Is this a pattern you are using?

from brakeman.

sevenseacat avatar sevenseacat commented on July 24, 2024

It's not, actually - though this app is using responders and I'm not sure if responders use that pattern under the hood...

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

Oh :( Alright, I'll keep looking into it.

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

Can you verify this is still occurring with Brakeman 1.6.0? Thanks!

from brakeman.

sevenseacat avatar sevenseacat commented on July 24, 2024

Still an issue, yes.

wrong number of arguments (0 for 1) | /Users/becky/.rvm/gems/ruby-1.9.3-p0/gems/brakeman-1.6.0/lib/brakeman/processors/template_alias_processor.rb:29:in `template_name'

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

Okay, thanks!

from brakeman.

artiom avatar artiom commented on July 24, 2024

same issue

ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]

rails -v
Rails 3.2.3

brakeman -v
brakeman 1.6.0

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

This seems to be caused by one or more calls to render in views without options that Brakeman recognizes.

My current guess is this is caused by calls to render :template => ... which were not being recognized. This is fixed in 1.6.1.

Please upgrade and let me know if the errors still occur.

Thanks!

from brakeman.

artiom avatar artiom commented on July 24, 2024

Fixed in my case. Thanks.

from brakeman.

sevenseacat avatar sevenseacat commented on July 24, 2024

Fixed here too in 1.6.1 :) Thanks!

from brakeman.

presidentbeef avatar presidentbeef commented on July 24, 2024

Awesome!

Thanks for reporting this issue.

from brakeman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.