riky
January 29, 2009, 11:08am
#1
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
riky
January 29, 2009, 11:12am
#2
On Thu, Jan 29, 2009 at 2:07 AM, riky [email protected] wrote:
Can anyone help me?
Thanks,
Riccardo
Hi, did you run the following command after installing the gem?
rake rails:update
-Conrad
riky
January 29, 2009, 1:29pm
#3
On Thu, Jan 29, 2009 at 2:32 AM, riky [email protected] wrote:
Firefox gives me an element not found error in prototyoe.js line 3588
But today i upgraded rails to 2.2.2 and from that moment when i open
rake rails:update
-Conrad
Hi, what does the following commands produce?
gem -v
rails -v
-Conrad
riky
January 29, 2009, 1:43pm
#4
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
riky
January 29, 2009, 1:29pm
#5
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
riky
January 29, 2009, 1:59pm
#6
My code was
TEST
CIAO
<%= 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
CIAO
<%= 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…