Hi Joe
> SyntaxError (/var/www/sandbox/public/../config/../app/models/user.rb:
> 20: syntax error, unexpected ''?''
> self.roles.count(:conditions => [''name = ?'',
role]) > 0
cch: Look at user.rb, line 20
> ^
> /var/www/sandbox/public/../config/../app/models/user.rb:20: syntax
> error, unexpected '']'', expecting ''=''
> self.roles.count(:conditions => [''name = ?'',
role]) > 0
> ^
> /var/www/sandbox/public/../config/../app/models/user.rb:25: syntax
> error, unexpected ''<''
> self.roles < < Role.find_by_name(role)
> ^):
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
> dependencies.rb:203:in `load_without_new_constant_marking''
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
> dependencies.rb:203:in `load_file''
> ...
>
> read more ยป
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---