Hans that did it!
Thanks for that one!
Cheers!
sinclair
On 9/25/07, Hans de Graaff <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote:
> >
> > def update
> > ...
> > if @config.update_attributes ( params[:new_config] )
> > redirect_to :action => :
On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote:
>
> def update
> ...
> if @config.update_attributes ( params[:new_config] )
> redirect_to :action => :index
> else
> render :action => :edit, :id => params[:id] # this line
> here
> end
> ...
> end
> it
On 9/15/07, s.ross <[EMAIL PROTECTED]> wrote:
> Look at your test.log and you can see exactly what was rendered. That should
> explain why the example is failing. This works best if you can silence the
> logs for all examples other than the one you are testing.
>
Better if you run just that exampl
Look at your test.log and you can see exactly what was rendered. That
should explain why the example is failing. This works best if you can
silence the logs for all examples other than the one you are testing.
On Sep 14, 2007, at 7:35 PM, sinclair bain wrote:
Hi,
A controller has a method
Hi,
A controller has a method with the following
def update
...
if @config.update_attributes ( params[:new_config] )
redirect_to :action => :index
else
* render :action => :edit, :id => params[:id] # this line here*
end
...
end
The example has the following
Hi,
A controller has a method with the following
def update
...
if @config.update_attributes( params[:new_config] )
redirect_to :action => :index
else
* render :action => :edit, :id => params[:id] # this line here*
end
...
end
The example has the following
it