Hallo Werner,

wie schaut's mit dem hier aus:

class Thing < AR
  belongs_to :user
end

class User < AR
  has_many :things
end

class ThingsController

  def index
    @things = current_user.things
  end

  def show
    @thing = current_user.things.find(params[:id])
  end
end

So verstehe ich das Problem (und die Lösung).

Viele Grüße
Nicolai
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an