Bildergalerie zum durchklicken..
am Ende will ich wieder das erst Bild laden lassen.

def next_pic
   unless @photo = Bilder.find(params[:id]).blank?
   @photo = Bilder.find(params[:id])
   render :action => 'show'

Bis hier hin scheint es zu funktionieren.

   else
   @photo = Bilder.find(:first, :conditions => "id = '#{12}'")
   [EMAIL PROTECTED] = Bilder.find(:first, :conditions => {:id => "12"})
   render :action => 'show'
   end
 end

Aber das will er nicht. Kann mir jemand einen Tipp geben warum ?
Log: ActiveRecord::RecordNotFound (Couldn't find Bilder with ID=14):

eben.. aber warum wird dann nicht else ausgeführt ?
Gruß Werner

--

Werner Laude
Lindenburger Allee 22  |  50931 Köln

0221.8805 635

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://www.webagentur-laude.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an