[Rails] Re: Update div with Prototype

2011-01-29 Thread Ace S.
Alberto B. wrote in post #965480: > I want to update the div (datos), the title works well. > I don't know why the option "remote => true" does not works. > > A greeting. > Thanks. Look here: http://www.ruby-forum.com/topic/211467 Cheers ace -- Posted via http://www.ruby-forum.com/. -- You re

[Rails] Re: Update div with Prototype

2010-12-01 Thread Alberto B.
I want to update the div (datos), the title works well. I don't know why the option "remote => true" does not works. A greeting. Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

Re: [Rails] Re: Update div with Prototype

2010-12-01 Thread Walter Lee Davis
On Dec 1, 2010, at 12:45 PM, pepe wrote: The title variable is to change the title when the page is refreshed. I believe you are a little lost about how the whole thing works. At first you said you wanted to change the contents of 'datos' but now you say you want to change the contents of the

[Rails] Re: Update div with Prototype

2010-12-01 Thread pepe
> The title variable is to change the title when the page is refreshed. I believe you are a little lost about how the whole thing works. At first you said you wanted to change the contents of 'datos' but now you say you want to change the contents of the tag . I'll assume from now on it is the lat

[Rails] Re: Update div with Prototype

2010-12-01 Thread Alberto B.
The title variable is to change the title when the page is refreshed. What you're doing with link_to_remote is what I want it. The problem is that Rails 3 does not work the "remote => true" in the "link_.to" and is supposed to be the equivalent of link_to_remote in Rails 2. And if I remove the o

[Rails] Re: Update div with Prototype

2010-12-01 Thread pepe
Hi, I have not used Rails 3 yet and I see by your link_to helper that's what you are using. Sorry if I can't be of much help, but I'll try to point out what I see here that _could_ be wrong. div class="menu_activado"> <% = link_to "Link", about_path,: remote => true%> I am assum

[Rails] Re: Update div with Prototype

2010-12-01 Thread Alberto B.
Hello Guest, This is my full code, I want to update "datos", without the :remote => true the div is updated but the full page, and it does nothing. application.html.erb <%= title %> <%= csrf_meta_tag %> <%= render 'layouts/stylesheets' %> <%= javascript_include_tag :default

[Rails] Re: Update div with Prototype

2010-11-30 Thread pepe
I might be blind, but I can't see a tag anywhere. I think your snippet should also contain controller code to be able to see what might be going on. On Nov 30, 5:33 am, "Alberto B." wrote: > I want to update a div on my page with prototype (new Ajax.Updater > ('my_div', 'page.html')). > What I d