# Template Scaffold syntax error

**URL:** <https://www.ruby-forum.com/t/template-scaffold-syntax-error/236457>\
**Category:** RSpec\
**Created:** [September 4, 2013, 6:00pm UTC](https://www.ruby-forum.com/t/template-scaffold-syntax-error/236457 "2013-09-04T18:00:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 4, 2013, 6:00pm UTC](https://www.ruby-forum.com/t/template-scaffold-syntax-error/236457/1 "2013-09-04T18:00:06Z")

</div>

I inherited a project from another developer.

I ran rspec . and I and getting the following error and I need help  
figuring it out asap.

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in  
`load': {application-path}/lib/templates/rspec/scaffold/controller_spec.rb:21: syntax error, unexpected '<', expecting end-of-input (SyntaxError) <% module_namespacing do -%> ^ from ~/rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in`block in load\_spec\_files’  
from  
~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in  
`each' from ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in`load\_spec\_files’  
from  
~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/command\_line.rb:22:in  
`run' from ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in`run’  
from  
~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in  
`block in autorun’

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![ate50eggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Post date:** [October 23, 2013, 12:19pm UTC](https://www.ruby-forum.com/t/template-scaffold-syntax-error/236457/2 "2013-10-23T12:19:22Z")

</div>

Nathan Biles wrote in post #1120671:

> I inherited a project from another developer.
> 
> I ran rspec . and I and getting the following error and I need help  
> figuring it out asap.

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in

> `load’:  
> {application-path}/lib/templates/rspec/scaffold/controller\_spec.rb:21:  
> syntax error, unexpected ‘\<’, expecting end-of-input (SyntaxError)  
> \<% module\_namespacing do -%\>  
> ^  
> from

~/rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in

> `block in load\_spec\_files’  
> from

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in

> `each’  
> from

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in

> `load\_spec\_files’  
> from

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/command\_line.rb:22:in

> `run’  
> from

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in

> `run’  
> from

~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in

> `block in autorun’
> 
> Thank you for your help!

hello Nathan,

it is clearly showing the syntax error along with line where this error  
is occurring , check the syntax, & may you have somewhere missing ‘\<’ or  
it is unnecessary present.
