Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error on generated app/helpers.rb #1694

Closed
williamn opened this issue Jun 11, 2014 · 3 comments
Closed

Syntax error on generated app/helpers.rb #1694

williamn opened this issue Jun 11, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@williamn
Copy link
Contributor

I got this message when I padrino start

ERROR - SyntaxError - /path/to/blog/app/helpers.rb:9: syntax error, unexpected keyword_end:

This is the generated file

# Helper methods defined here can be accessed in any controller or view in the application

module Blog
  class App
    module 
      # def simple_helper_method
      # ...
      # end
    end

    helpers 
  end
end

This only happen when I added `-i` options when I generate project.
@namusyaka namusyaka added this to the 0.12.3 milestone Jun 11, 2014
@namusyaka namusyaka added the bug label Jun 11, 2014
@namusyaka namusyaka self-assigned this Jun 11, 2014
@namusyaka
Copy link
Contributor

Thanks for the report, and sorry.
I'll fix the issue soon.

@namusyaka
Copy link
Contributor

Fixed.
I'm sorry to inconvenience you, but please set module name as below.

module Blog
  class App
    module Helper
      # def simple_helper_method
      # ...
      # end
    end

    helpers Helper
  end
end

@williamn
Copy link
Contributor Author

@namusyaka no need to sorry. That was fast 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants