thks. Matt, but unfortunately this still didn't solve the problem. Same error message is shown.
On Jan 11, 10:27 pm, Matt Jones <[email protected]> wrote: > There's a space missing between the two ?s. > > --Matt Jones > > On Jan 11, 2011, at 3:56 PM, kay wrote: > > > I am following Rapid-Rails-with-Hobo-2010-03-30.docx book and on > > Tutorial 23 – Using Hobo Lifecycles for Workflow page 275 following > > expression should be added to the recipe model. > > > named_scope :viewable, lambda {|acting_user| {:conditions => > > “#{acting_user.signed_up??1:0}=1 or lifecycle_state='published'" > > }} > > > When I run the application following error raises: > > > [2011-01-11 00:44:13] ERROR SyntaxError: /home/kay-uwe/tutorials/ > > four_table/app/models/recipe.rb:23: syntax error, unexpected ':', > > expecting '}' > > ...=> "#{acting_user.signed_up?1:0}=1 or lifecycle_state='publi... > > > I think there is a typo error in "acting_user.signed_up??1:0" but I > > could not get the right expression. > > > Can someone help me at this stage? > > > -- > > 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 > > athttp://groups.google.com/group/hobousers?hl=en. -- 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.
