On Nov 20, 11:22 pm, "Jose tomas R." <li...@ruby-forum.com> wrote:
> def privilege > (session[:user_id].exist? && session[:user_id].privilege == 50) ? > true : false > end > > and on the actual page i put > > <%= :privilege ? link_to('Edit', edit_product_path(product)) : "" %> > > but it doesnt work You've got a stray : in front of privilege Fred > > -- > Posted viahttp://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.