Hi Stefan,
This error:
Rendered controller: products; dryml-tag: not-found-page (41.2ms)
Sometimes indicates that an ActiveRecord call went wrong, like trying to
find product 9999 when it does not exist:
Product.find(9999)
This error is also a good candidate to be improved, as it "hides" some
real errors too many times.
Warm regards,
Ignacio
El 16/01/14 12:47, Stefan Haslinger escribió:
> Hi Ignacio,
>
> thanks again for your support. Your suggestions work perfectly, my final
> code is
>
> def do_add_to_basket
> do_transition_action :add_to_basket do
> flash[:success] = "Das Produkt wurde zum Warenkorb hinzugefügt."
> flash[:notice] = nil
> redirect_to @product
> end
> end
>
>
> In contrast to translation, I can specify (and translate) transitition
> specific flashed and have it a success, not a notice flash.
> I tried to redirect at the wrong place before (in the def transition
> do-block).
>
> Now I have the strangest situation: Runs nice in development, runs nice
> on thin in production.
> Transported to server (apache + passenger)
>
> Started PUT "/products/1832-compaq-505b-mt-x4-630-2gb/add_to_basket"
> for 178.191.163.196 at 2014-01-16 12:44:51 +0100
> Processing by ProductsController#do_add_to_basket as HTML
> Parameters:
> {"page_path"=>"/products/1832-compaq-505b-mt-x4-630-2gb/add_to_basket",
> "authenticity_token"=>"bfxc9cysTIYKxzRd8PhuVJ7R5Vmlg5d93+RGGR2MzeU=",
> "id"=>"1832-compaq-505b-mt-x4-630-2gb"}
> Rendered controller: products; dryml-tag: not-found-page (41.2ms)
> Completed 404 Not Found in 189ms (Views: 42.2ms | ActiveRecord: 2.6ms)
>
>
> Debugging this right now ...
>
> Warm regards,
> Stefan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/groups/opt_out.
--
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.