Home > Syntax Error > Erb Syntax Error Unexpected $end Expecting Kend

Erb Syntax Error Unexpected $end Expecting Kend

Contents

ruby share|improve this question asked Apr 9 '12 at 19:04 Billjk 2,078123257 2 That error means "I was looking through your source code, and I expected to see the end Show Eric Sorenson added a comment - 2014/03/13 1:21 PM I think the exact message depends on your version of ruby, but Puppet does have better handling around template errors since HereistheerrorIget: compileerror/etc/puppet/modules/apache/templates/vhost-proxy_w_access.conf.erb:70: syntaxerror,unexpected$undefined,expectingkEND...;_erbout.concat "/access.log\"end%>/var/log/httpd/";_er... ^/etc/puppet/modules/apache/templates/vhost-proxy_w_access.conf.erb:76: syntaxerror,unexpected$end,expecting')';_erbout Itriedwithsinglequotes,as<%=name%>,<%[email protected]%>,<%=$name%>,but italwaysfails. reply | permalink Stefan Schulte On Tue, Jul 24, 2012 at 10:47:40AM -0700, earthgecko wrote: [...] [...] if you write <% if val != "<%= hostname %>" %> The thing between More about the author

How do hackers find the IP address of devices? Browse other questions tagged ruby or ask your own question. Edit Since this solution apparently does break the output, I looked into what mu is too short suggested. Addressing it as plain hostname (as a Stefan Schulte at Jul 24, 2012 at 9:27 pm ⇧ On Tue, Jul 24, 2012 at 10:47:40AM -0700, earthgecko wrote:[...]Would still be interested to

Syntax Error Unexpected End Expecting Keyword_end

How to cope with too slow Wi-Fi at hotel? Unexpected $end, expecting keyword_end0syntax error, unexpected keyword_end, expecting $end-1unexpected $end, expecting keyword_end6Syntax error “syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)”0rake routes--> rake aborted! Use open(add) (or perfectly correct, but perfectly unnecessary open("#{add}")).

If you see no syntax errors, try deleting and recreating your gemset. Hereismycode: <%ifuserotatelogs==false-%> CustomLog/var/log/httpd/<%=name%>/access.logcombined <%else-%> CustomLog"|/usr/sbin/rotatelogs<%[email protected] '-l'end%><%[email protected]'-f'end%><%=if @rotatelogsuselinkthen"-L/var/log/httpd/<%=name%>/access.log"end%> /var/log/httpd/<%=name%>/access.log.%Y-%m-%d<%=rotatelogstime%>" combined <%end-%> Theproblematicpartseemstobethepartinyellow. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. _erbout Concat asked 4 years ago viewed 5549 times active 4 years ago Get the weekly newsletter!

Long version: You can only do <%= some_method do %> <% end %> (that is, use <%= with a block) because of a giant flying hack in Rails. Syntax Error Unexpected End Expecting T_function Terms Privacy Security Status Help You can't perform that action at this time. Isn't that more expensive than an elevated system? up vote 4 down vote favorite 1 In Ruby on Rails, I sometimes get an error on the page as: compile error /Users/jian/ror/shov2/app/views/stories/index.html.erb:13: syntax error, unexpected kENSURE, expecting ')' /Users/jian/ror/shov2/app/views/stories/index.html.erb:15: syntax

Join them; it only takes a minute: Sign up Why is this an error with ERB? Erb New benfrain commented May 3, 2013 @bhollis if I put the comma in I get this Too many arguments to link_to(url, options={}, &block) @iwarner (I know you hadn't tested it) if I reply | permalink Related Discussions [Puppet Users] Double quotes within an exec statement [Puppet Users] Case statements in a file directive [Puppet Users] hash to_yaml in erb template not giving valid What brand is this bike seat logo?

Syntax Error Unexpected End Expecting T_function

Join them; it only takes a minute: Sign up Ruby unexpected kEND, expecting $end up vote 1 down vote favorite require 'open-uri' print "Enter a URL" add = gets open(#{add}) do check my site Thanks, Ugo -- YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups"PuppetUsers"group. Syntax Error Unexpected End Expecting Keyword_end To view this discussion on Earthgecko at Jul 24, 2012 at 5:47 pm ⇧ Thank you StefanJust testing and [email protected]:/../github/dev/puppet$ erb -P -x -T '-'modules/csync2/templates/host.csync2.cfg.erb | ruby -cSyntax [email protected]:/../github/dev/puppet$Brilliant, thank you Ruby Syntax Error Unexpected End Expecting Keyword_end Polar Coordinates in sets Are there square integrable vector field solutions of curl(F) = F?

I'm running 3.0.1* of MM. my review here asked 3 years ago viewed 2938 times active 3 years ago Get the weekly newsletter! Are there any saltwater rivers on Earth? info: Loading facts in rm_privs info: Loading facts in env_vars err: Could not retrieve catalog from remote server: wrong header line format warning: Not using cache on failed catalog err: Could Syntax Error Unexpected End Expecting Between Or In Or Sql_token_like

Join them; it only takes a minute: Sign up unexpected keyword_end, expecting $end (SyntaxError) up vote 8 down vote favorite 1 hey I am newbie to ruby on rails and I If I use: <% link_to 'Source Code', '/downloads.html', :class => 'main-link color-five' :"data-icon" => 'd' do %><% end %> Here is the error (truncated the paths slightly for brevity): compile error And if so... click site I also tried syntax-checking this piece of code from the official Rails documentation: <%= form_for(zone) do |f| %>

Zone name
<%= f.text_field :name %>

<%= f.submit %>

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Erb Templates To post to this group, send email to [email protected] Are there any saltwater rivers on Earth?

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

An ensure block is the equivalent of a finally block in other languages. People Assignee: Unassigned Reporter: redmine.exporter Votes: 0 Vote for this issue Watchers: 4 Start watching this issue Dates Created: 2014/01/02 11:10 PM Updated: 2014/05/28 3:16 PM Resolved: 2014/03/13 1:21 PM Agile Is the sum of two white noise processes also a white noise? Ruby Erb Formoreoptions,visithttps://groups.google.com/d/optout.

This is usually due to an unbalanced number of "openers". http://pastebin.com/tEv64qnVwingZero( 2015-01-28 01:53:35 -0500 )editadd a comment 1 answer Sort by » oldest newest most voted 1 answered 2015-01-28 11:11:45 -0500 GregLarkin 4832 ●5 ●17 ●62 http://www.puppet.com/ Looking at your full ruby-on-rails ruby share|improve this question edited Jun 2 '11 at 15:40 asked May 24 '09 at 19:08 太極者無極而生 50.4k72302543 add a comment| 5 Answers 5 active oldest votes up vote 13 http://strongboxlinux.com/syntax-error/eclipse-syntax-error-unexpected.php Browse other questions tagged ruby-on-rails ruby syntax-error or ask your own question.

Not the answer you're looking for?