Displaying 1 result from an estimated 1 matches for "has_pal".
Did you mean:
has_cal
2008 Aug 01
0
Help with Access Control
...flection.rb:189:in `source_reflection''
...
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
associations.rb:1128:in `new''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
associations.rb:1128:in `pals''
app/models/user.rb:17:in `has_pal?''
app/controllers/users_controller.rb:20:in `show''
/models/user.rb
line 16: def has_pal?(pal)
line 17: self.pals.find(pal) ? true : false
Line 18: end
/controllers/users_controller.rb
Line 18: def show
Line 19: @info = User.find(params[:id])
Line 20...