Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue regarding custom template in lib directory #1364

Closed
ashrafuzzaman opened this Issue · 1 comment

2 participants

@ashrafuzzaman

Hi I have custom rails template in lib directory and when i run

rails g rails_admin:install

I get the following error.

gems/activesupport-3.2.3/lib/active_support/dependencies.rb:469:in `load': /home/jitu/projects/sympaticoschool/lib/templates/rails/scaffold_controller/controller.rb:1: syntax error, unexpected '<' (SyntaxError)
<% module_namespacing do -%>
 ^
/home/jitu/projects/sympaticoschool/lib/templates/rails/scaffold_controller/controller.rb:1: syntax error, unexpected keyword_do, expecting $end
<% module_namespacing do -%>
...........................
@mshibuya
Collaborator

I suppose you're placing ERB formatted template file named like foo.rb in lib dir.
If so, you'll need to rename them as foo.rb.erb to prevent parsing as plain ruby code.

@mshibuya mshibuya closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.