search for: _erbout

Displaying 20 results from an estimated 53 matches for "_erbout".

2006 Sep 11
2
Compilation Errors
...0.3, and now when I try to run my app with mongrel on Windows, I get very strange compile errors: ompile error C:/rails/app/script/../config/../app/views/login/index.rhtml:8: Invalid char `\002'' in expression C:/rails/app/script/../config/../app/views/login/index.rhtml:9: syntax error _erbout.concat " <td>".; _erbout.concat(( text_field("user", "email") ).to_s); _erbout.concat "</td>\n" ^ C:/rails/app/script/../config/../app/views/login/index.rhtml:12: Invalid char `\003'' in expression C:/rails/app/sc...
2006 Feb 07
3
Newbie help ..
...ck'', :action => ''list'' %> <%= end_form_tag %> In browser: Showing app/views/admin/new.rhtml where line #8 raised: compile error script/../config/../app/views/admin/new.rhtml:8: parse error, unexpected '';'', expecting '')'' _erbout.concat " <td> "; _erbout.concat(( text_field( "member", "first_name", size => 40 ).to_s); _erbout.concat " </td>\n" ^ script/../config/../app/views/admin/new.rhtml:12: parse error, unexpected '';'...
2006 Jan 10
7
All My Rails Apps Died Over the Holidays
I have several Rails (version 1.0) apps I''m working on on a Win XP box using Webrick that were working fine before I left for the holidays. I came back, started up and they all get the same syntax and compile errors: compile error ./script/../config/../app/views/time/list.rhtml:4: Invalid char `\212'' in expression repeated over and over. Refreshing the page gives thes same
2006 Jan 19
9
start_form_tag not taking url_for options
...er/login. The code to start the tag is: <%= start_form_tag { :controller => "user", :action => "login" } %> That gives me this exception: compile error script/../config/../app/views/user/login.rhtml:1: parse error, unexpected tASSOC, expecting ''}'' _erbout = ''''; _erbout.concat(( start_form_tag { :controller => "user", :action => "login" } ).to_s); _erbout.concat "\n" ^ script/../config/../app/views/user/login.rhtml:1: parse error, unexp...
2006 Apr 08
5
Strange error ...
I''m getting a very strange error in a very vanilla Rails app setup: compile error ./script/../config/../app/views/home/index.rhtml:1: parse error, unexpected $, expecting kEND _erbout = ''''; _erbout.concat " <div id=\"index_main\">\n" ... ? Anyone know what this might be? I installed the Login Engine and the error started. I''m using a Windows machine and I''d like to delete existing session files, but I''m no...
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi I am running Mac OX tiger with the installed ruby 1.8.2, and mysql5 (I checked that it was running in preference). I tried to run the various fixes recommended in agileweb. I am stuck on page 57, script/generate scaffold... > Could you paste in your database.yml file, from the > "config" folder inside your Rails app? If you have any > passwords entered there, you should
2007 Feb 12
1
Invalid char problem
...~1/rails_apps/travelogue/config/../app/views/article_editor/_header_read.rhtml:2: parse error, unexpected '')'', expecting kEND C:/INSTAN~1.4P1/INSTAN~1/rails_apps/travelogue/config/../app/views/article_editor/_header_read.rhtml:3: parse error, unexpected tIDENTIFIER, expecting kEND _erbout.concat " <div class=\"article_title\">"?; _erbout.concat(( @article.title ).to_s); _erbout.concat "</div>\n" ^ C:/INSTAN~1.4P1/INSTAN~1/rails_apps/travelogue/config/../app/views/article_edit...
2007 May 28
2
helper with block compile error
...ot;} do %> <h1>LOGIN</h1> <p>Already have an account?</p> <p>LOG IN NOW</p> <% end %> # the error I get is a compile error compile error syntax error, unexpected tASSOC, expecting ''}'' _erbout.concat " "; link_block_to_remote { :url => { :action => :start_login } }, ^ syntax error, unexpected '','', expecting kEND _erbout.concat " "; link_block_to_remote { :url =&g...
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
...;'re running CentOS. <% end ~%> */tmp/puppet$ erb -x -T ''-'' test.erb | ruby -c* -:2: syntax error, unexpected ''~'', expecting kTHEN or '':'' or ''\n'' or '';'' ; if operatingsystem == "CentOS" ~; _erbout.concat "\n" ^ -:4: syntax error, unexpected kEND, expecting $end ; end ~; _erbout.concat "\n" ^ */tmp/puppet**$ perl -pi -e ''s/~//'' test.erb* */tmp/puppet$ erb -x -T ''-'' test.erb | ruby -c* Syntax OK *...
2006 Jul 25
3
about ERB sample
...x = 42 3. template = ERB.new <<-EOF 4. The value of x is: 5. EOF 6. puts template.result(binding) the doc say it will print "The value of x is: 42" but my irb print "nil" and there is a "=> #<ERB:0x2970b24 @src="_erbout = ''''; _erbout.concat \" The value of x is: \\n\"\n_erbout", @filename=nil, @safe_level=nil>" at the end of 5th line. Why?hun.. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonra...
2006 Apr 04
2
Syntax Error in find()
...d(), I am getting this syntax error for <% @choices = Choic e.find(:all, :conditions => "question_id" = question.id, :order => "order") %> ---- ERROR LOG ---- ActionView::TemplateError (compile error ../config/../app/views/admin/test/show.rhtml:37: syntax error _erbout.concat " "; @choices = Choice.find(:all, :conditions => "question_id" = question.id, :order => "order") ; _erbout.concat "\r\n" ^ ../config/../app/views/admin/test/s...
2007 Sep 19
0
Error with special characters(?)
...the following error: (note that i dont have the problem with the element of index 1 which also have a "é" but not in the last position of the string. compile error ./script/../config/../app/views/xpto/insertion.rhtml:20: syntax error, unexpected tCONSTANT, expecting '']'' _erbout.concat "\t\t"; types_demandes = ["AF1", "AL餵EL", "AE p頦quot;, "CET"]; _erbout.concat "\n" ^ ./script/../c...
2006 May 31
7
How to render from with <%%> ?
I have a loop that I iterate through in my view. <% coll.each do |itm| puts(itm.value) end %> How do I render the itm.value without using a <%= %> tag? Should puts not work? Joerg P.S. There is a good enough reason for me wanting to do this :-) -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the views with tons of <% %> ? Like this <%= start_form_tag() %> <%= text_field_tag(''category[title]'', category.title, {:size => 20, :maxlength => 128}) %> <% if not category.parent_id.nil? %> <%= select("category", "parent_id", Category.find(:all,
2006 Mar 11
4
Live search in Rails
...#39;' I cant fathom what im doing wrong, is that line calling a column in my database called items? Here''s the error ./script/../config/../app/views/domain/search.rhtml:1: syntax error ./script/../config/../app/views/domain/search.rhtml:3: syntax error <% for domain in @items ; _erbout.concat "\n" ^ ./script/../config/../app/views/domain/search.rhtml:3: syntax error <% for domain in @items ; _erbout.concat "\n" ^ ./script/../config/../app/views/domain/search.rhtml:6: syntax error ./script/../config/../app/views/domain/search.rhtml:7: syn...
2006 Jun 17
4
Textmate Madness
...ver, when I run those files on a Windows machine I get e.g. compile error ./script/../config/../app/views/station/consumption/new.rhtml:2: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:4: parse error, unexpected tIDENTIFIER, expecting kEND _erbout.concat " "x; _erbout.concat((render :partial=>"record_form").to_s); _erbout.concat "\n" ^ ./script/../config/../app/views/station/consumption/new.rhtml:4: Invalid char `\002'' in expression ./script/../config/../app/views/station/consump...
2011 Aug 08
12
Hash Interpolation inside double quotes?
I''ve got this: file { ''/opt/sugarsync/tomcat/tomcat-home/current'': ensure => "tomcat-$config[''tomcat_version_server'']"; where $config[''tomcat_version_server''] was set with extlookup (the yaml one), by loading: --- tomcat_config: tomcat_version_server: 6.0.20-1 tomcat_version_libs: 1.0-1
2012 Jan 23
13
Template Help Please
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the template now:- <%=
2006 Jul 20
3
Output to browser in .rhtml templates
Hi! In .rhtml template I''m trying to create some output, which should be sent to browser. But this is inside <% %> not <%= %>, so how can it be accomplished? Default output is directed to log file, so puts "output" does not send to browser but to log file... -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
2
start_form_tag with method GET
...can I get start_form_tag to use GET instead of POST? I have tried... <%= start_form_tag {:action => ''search''}, {:method => ''get''} %> But it doesn''t work... compile error ./script/../config/../app/views/search/index.rhtml:35: syntax error _erbout.concat(( start_form_tag {:action => ''search''}, {:method => ''get''} ).to_s); _erbout.concat "\n" ^ ./script/../config/../app/views/search/index.rhtml:35: syntax error _erbout.concat(( start_form_tag {:acti...