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

Comments

Projects
None yet
2 participants
@williamn
Contributor

williamn commented Jun 11, 2014

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

This comment has been minimized.

Show comment
Hide comment
@namusyaka

namusyaka Jun 11, 2014

Member

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

Member

namusyaka commented Jun 11, 2014

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

@namusyaka namusyaka closed this in dd917a8 Jun 11, 2014

@namusyaka

This comment has been minimized.

Show comment
Hide comment
@namusyaka

namusyaka Jun 11, 2014

Member

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
Member

namusyaka commented Jun 11, 2014

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

This comment has been minimized.

Show comment
Hide comment
@williamn

williamn Jun 11, 2014

Contributor

@namusyaka no need to sorry. That was fast 🍻

Contributor

williamn commented Jun 11, 2014

@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