I''ve got a view template that contains this:
<%= render_component(:controller => ''reviews'',
:action => ''show'',
:params => { ''id'' => review.id })
%>
In Rails 0.10.0 this worked just fine. After I upgraded to 0.10.1 I get this
error:
ActiveRecord::RecordNotFound in Reviews#show
Couldn''t find Review without an ID
app/controllers/reviews_controller.rb:14:in `show''
(erb):28:in `evaluate_locals''
(erb):26:in `each''
(erb):26:in `evaluate_locals''
script/server:48
Is this a Rails bug? Or am I doing something wrong that just happened to
work before?
Curt
Possibly related to this change? http://dev.rubyonrails.com/changeset/862 I would try render_component(:controller => ''reviews'', :action => ''show'', :id => review.id) -d. On Mon, 7 Mar 2005 12:48:31 -0600, Curt Hibbs <curt-fk6st7iWb8MAvxtiuMwx3w@public.gmane.org> wrote:> I''ve got a view template that contains this: > > <%= render_component(:controller => ''reviews'', > :action => ''show'', > :params => { ''id'' => review.id }) > %> >
Dan Peterson wrote:> > Possibly related to this change? > > http://dev.rubyonrails.com/changeset/862 > > I would try render_component(:controller => ''reviews'', :action => > ''show'', :id => review.id)Yes, that was it. Thanks, Curt> On Mon, 7 Mar 2005 12:48:31 -0600, Curt Hibbs <curt-fk6st7iWb8MAvxtiuMwx3w@public.gmane.org> wrote: > > I''ve got a view template that contains this: > > > > <%= render_component(:controller => ''reviews'', > > :action => ''show'', > > :params => { ''id'' => review.id }) > > %> > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 3/4/2005 >