On Nov 9, 2010, at 5:34 PM, Pedro wrote:
> Hi,
> I'm following tutorial 23, and I'm stucked.
> When I run ruby script/server I got the follow error:
>
>
> => Rails 2.3.8 application starting on http://0.0.0.0:3000
> C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
> active_support/depende
> ncies.rb:380:in `load_without_new_constant_marking': C:/tutorialHobo/
> four_table/
> app/models/recipe.rb:19: syntax error, unexpected tIDENTIFIER,
> expecting '}' (Sy
> ntaxError)
> lifecycle :state_field => :lifecycle_state do
> ^
> C:/tutorialHobo/four_table/app/models/recipe.rb:44: syntax error,
> unexpected kEN
> D, expecting '}'
> from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
> active_su
> pport/dependencies.rb:380:in `load_file'
> from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
> active_su
>
[snip]
>
> named_scope :viewable, lambda {|acting_user| {:conditions =>
> “#{acting_user.signed_up??1:0}=1 or lifecycle_state='published'" }}
Is this copied exactly from the source? I couldn't get an equivalent piece of
code to even parse in Ruby 1.8 (gives a "syntax error, unexpected ':',
expecting '}'" message caused by the ?? part).
--Matt Jones
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.