My code was

TEST
<br>
<div id="text">CIAO</div>
<br>
<%= select_tag 'direction[]', options_for_select
(@directions), :multiple => false,:class=>'list'%>

<%= observe_field 'direction[]', :url => { :action
=> :observe_field_test },:frequency => 0.25,:update => :text,:with =>
'direction[]' %>

now trying to change it to

TEST
<br>
<div id="text">CIAO</div>
<br>
<%= select_tag 'direction', options_for_select(@directions), :multiple
=> false,:class=>'list'%>

<%= observe_field 'direction', :url => { :action
=> :observe_field_test },:frequency => 0.25,:update => :text,:with =>
'direction' %>

seems to work....

but i don't understand why....


On Jan 29, 11:39 am, riky <[email protected]> wrote:
> gem -v
> /usr/bin/gem:11:Warning: Gem::manage_gems is deprecated and will be
> removed on or after March 2009.
> 1.3.1
>
> rails -v
> Rails 2.2.2
>
> On Jan 29, 11:36 am, Conrad Taylor <[email protected]> wrote:
>
> > On Thu, Jan 29, 2009 at 2:32 AM, riky <[email protected]> wrote:
>
> > > Hi,
>
> > > i did :
>
> > > ~/webapps/test/app/views/test$ rake rails:update
> > > (in /home/citec/webapps/test)
>
> > > but nothing changes
>
> > > Firefox gives me an element not found error in prototyoe.js line 3588
> > > and the observe_field ajax function is not working
>
> > > Riccardo
>
> > > On Jan 29, 11:11 am, Conrad Taylor <[email protected]> wrote:
> > > > On Thu, Jan 29, 2009 at 2:07 AM, riky <[email protected]> wrote:
>
> > > > > Hi,
>
> > > > > i made an application using rails and prototype and all worked fine...
> > > > > But today i upgraded rails to 2.2.2 and from that moment when i open
> > > > > the webpage with firefox it gives me an error like "object is null"
> > > > > and some prototype "helpers" doesn't work at all as for example the
> > > > > observe_field...
>
> > > > > Can anyone help me?
>
> > > > > Thanks,
> > > > > Riccardo
>
> > > > Hi, did you run the following command after installing the gem?
>
> > > > rake rails:update
>
> > > > -Conrad
>
> > Hi, what does the following commands produce?
>
> > gem -v
>
> > rails -v
>
> > -Conrad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to