Eso es lo que no entiendo si le estoy llamando a index no a show.
def entradas_general
@entradas = Entrada.paginate :page => params[:page], :per_page =>
10,:order=>"fecha_hora desc"
respond_to do |format|
#format.html # index.html.erb
#format.html { render :action => "index" }
format.html { render :template => "index" }
format.xml { render :xml => @entradas }
end
end
Y el mensaje de error me dice que le estoy llamando a show. Ahí me quede
colgado jeje.
Néstor
--------------------------------------------------
From: "Maximiliano Guzman" <[email protected]>
Sent: Tuesday, August 03, 2010 6:55 AM
To: "Grupo Ruby Argentina" <[email protected]>
Subject: Re: [RubyArg] Como usar un render para ver el mismo view para dos
otres controladores diferentes?
2010/8/3 Nestor Rodriguez <[email protected]>:
Le probé de varias formas así como me aconsejaron pero no se porque me
lanza
el siguiente error
ActiveRecord::RecordNotFound in EntradasController#show
Couldn't find Entrada with ID=entradas_general
Nestor, eso te dice que el problema está en esta parte:
@entradas = Entrada.paginate :page => params[:page], :per_page =>
10,:order=>"fecha_hora desc"
no en el render.
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar