11175
(-- --)
1
I know there is a mistake in
plants_controller:
def show
@plant = Plant.find_by_id_and_published(params[:id], true)
@title = @plant.name_deu
if is_logged_in?
@plant_in_garden = Garden.find_by_user_id(params[:id].to_i)
else
@plant_in_garden = nil
end
I'm just looking for if there is this user in it, I'll change that but
that doesn't solve the big challenge 
11175
(-- --)
2
I changed the show action:
def show
@plant = Plant.find_by_id_and_published(params[:id], true)
@title = @plant.name_deu
if is_logged_in?
@plant_in_garden = Garden.find_by_plant_id(params[:id].to_i,
:conditions => { :user_id => logged_in_user.id})
else
@plant_in_garden = nil
end
That works fine. I would have changed that in the first post, it's just
not possible to edit in that board. I hope you still see my problem 