On 24 Ún, 17:26, Nick Hoffman wrote:
> On 24/02/2009, at 8:03 AM, vo.x wrote:
>
>
>
> > On 23 Ún, 18:41, Nick Hoffman wrote:
> >> On 22/02/2009, at 3:34 PM, vo.x wrote:
>
> >>> Hello all,
>
> >>> Is there some best practice how to test Rails controller action
> >>> which
> >>> is using send_fil
On 24/02/2009, at 8:03 AM, vo.x wrote:
On 23 Ún, 18:41, Nick Hoffman wrote:
On 22/02/2009, at 3:34 PM, vo.x wrote:
Hello all,
Is there some best practice how to test Rails controller action
which
is using send_file method? Could you help me please?
Vit
On 23/02/2009, at 2:43 AM, vo.
On 23 Ún, 18:41, Nick Hoffman wrote:
> On 22/02/2009, at 3:34 PM, vo.x wrote:
>
> > Hello all,
>
> > Is there some best practice how to test Rails controller action which
> > is using send_file method? Could you help me please?
>
> > Vit
>
> On 23/02/2009, at 2:43 AM, vo.x wrote:
>
> > Just to b
On 22/02/2009, at 3:34 PM, vo.x wrote:
Hello all,
Is there some best practice how to test Rails controller action which
is using send_file method? Could you help me please?
Vit
On 23/02/2009, at 2:43 AM, vo.x wrote:
Just to be clear, this is how the action looks:
def download
log = Act
Just to be clear, this is how the action looks:
def download
log = ActivityLog.find(params[:id])
if log
send_file log.path
else
flash[:notice] = _("Log file \"#{params[:id]}\" was not found.")
redirect_to :action => 'index'
end
end
Vit
___
Hello all,
Is there some best practice how to test Rails controller action which
is using send_file method? Could you help me please?
Vit
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users