El archivo se llama: "create.js.rjs"
----------------------------------------------------------------------------------------------------------------------------
page.select("#notice").each {|notice| notice hide }

page.replace_html('cart', render(@cart))
page[:cart].visual_effect :blind_down if @cart.total_items == 1
page[:current_item].visual_effect :hightlight,
                                                       :startcolor =>
"#88ff88",
                                                       :endcolor   =>
"#114411"

----------------------------------------------------------------------------------------------------------------------------
Y dentro del controlador tengo lo siguiente en create

  def create
      @cart = current_cart
      product = Product.find(params[:product_id])
    @line_item = @cart.add_product(product.id)

    respond_to do |format|
      if @line_item.save
        format.html { redirect_to(store_url) }
        format.js   { @current_item = @line_item }
        format.xml  { render :xml => @line_item,
                            :status => :created,
                            :location => @line_item }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @line_item.errors, :status =>
:unprocessable_entity }
      end
end
-------------------------------------------------------------------------------------------------------------------------------
saludos, poli

2011/4/27 Marcos Vanetta <[email protected]>

> Paolo, no estas dando muchos datos, difícil imaginar el problema
> podrías pastear [1] el código de tu archivo? BTW no se si se sigue usando
> esa extensión.
>
> Saludos
>
> 2011/4/27 Paolo Loran <[email protected]>
>
>> Buenas, les consulto esta vuelta por el motivo de que tengo creado mi
>> archivo con los efectos visuales javascript (extension 'js.rjs') pero no veo
>> en pantalla ningún cambio ni efecto.
>> Mis datos:
>> SO: Ubuntu 10.10 Maverick
>> Navegador: Nightly 6.0a1 o Namoroka/3.6.18pre
>> Rails 3.0
>>
>> que podra ser??
>>
>> Saludos.
>> poli
>>
>> _______________________________________________
>> Ruby mailing list
>> [email protected]
>> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>>
>>
>
>
> --
> Ing. Marcos Vanetta
> https://launchpad.net/~marcosvanetta
> http://blog.malev.com.ar
> twitter: @malev
>
> _______________________________________________
> 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

Responder a