search for: kwhen

Displaying 3 results from an estimated 3 matches for "kwhen".

Did you mean: when
2006 Apr 25
16
case statements in views...strange error on OSX
I have a simple case statement in one of my views. This works fine on my windows machine. Move to the mac and I get: "parse error, unexpected tIDENTIFIER, expecting kWHEN". I have not changed anything but cannot resolve the issue. my view has this in it (simplified for test) <% case controller.controller_name -%> <% when "accounts" -%> <h3>worked accounts</h3> <% else -%> <h3>worked else</h3> <% end -%&g...
2011 Mar 07
1
has_one :dependent => :destroy error (in `configure_dependency_for_has_one': compile error (SyntaxError))
...@.../gems/activerecord-3.0.5/lib/active_record/associations.rb:1673:in `configure_dependency_for_has_one'': compile error (SyntaxError) /Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../gems/activerecord-3.0.5/lib/active_record/associations.rb:1672: syntax error, unexpected kIF_MOD, expecting kWHEN association.destroy if association ^ from /Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../gems/activerecord-3.0.5/lib/active_record/associations.rb:1109:in `has_one'' from /Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../gems/activ...
2007 Aug 15
0
case .. when in view
...ut the strange thing is that rails/ruby can''t seem to handle whitespace in front of the "when" statement: <% when :string then -%> generates: compile error script/../config/../app/views/inside/admin/_form.rhtml:26: parse error, unexpected tIDENTIFIER, expecting kWHEN _erbout.concat " "; when :string then ^ allthough <% when :string then -%> works.. Seems like a bug to me.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subs...