Displaying 20 results from an estimated 300 matches similar to: "Very strange observe_form problem"
2006 Mar 15
1
Through method problems with custom foreign_keys
A person has a many company_branches and
A company_branch has many people.
This join is represented using a "contacts" table.
I am using a legacy schema so i am forced into using non-standard rails
primary keys. I am using the new through relationship in rails 1.1.
p=Person.find(1)
b=p.company_branches # gives this error:
ActiveRecord::StatementInvalid: OCIError: ORA-00904:
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one
(and other relationship identifiers). I have read the RDoc and the
agile book many times about this and I think i still see it backwards.
Let me outline my app so you have an understanding...
I have 2 tables:
Schools { id, school_name, address_id }
and
Addresses { street1, street2, city, state, zip, country }
*** this
2007 Oct 11
0
display problem with to_csv
Hi all,
I need to export the document as csv file, i have exported
successfully, but the problem is not displayed as per my format, in csv
file the format is suffuled, i want the orderwise as how i have
mentioned in my query, please help me to come out in the order wise.
My coding is:
@report_data=EdiaUserContact.find_by_sql(
"SELECT '''' as ''Title'',
2006 Apr 08
0
Understanding observe_form...
Hi all,
I''m trying to understand the workings of the observe_form function.
In my application I have a search form with a number of parameters, and
I want to have a live search counter on screen, so as the user chooses
different parameters, she can see a live count of how many search
results match.
What I''m not clear on is how to use the "with" option, and what
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to
watch a whole form for changes and activate some javascript when those
changes occur without any remote request?
That is, I want to do exactly what observe_form does, but without the
ajax call actually happening. I realize I could use the form_tag
:onchange parameter, but that seems to be incapable of doing things like
2006 Jan 09
2
Using RJS templates with observe_form
Hi there,
I''ve been checking out RJS templates, and have been trying to use them
with the observe_form helper.
However, the form values are no longer being passed in the params (as
soon as I point the action to the non-rjs and add the ''update'' clause
everything is working again). Is this expected?
Cheers,
Dave
-------------- next part --------------
An
2006 Aug 15
4
observe_form not serializing form
I want to use observe_form to automatically save notes in a text_area.
This is the code I have:
<form id=''notes_form''>
<%= text_area :contact, :notes, :cols => 40, :rows => 10,
:id =>''notes_text_area'' %>
<%= observe_form(''notes_form'',
:frequency => 1,
2006 May 29
0
nowhere to find a observe_form docu
Do somebody know where to find a real good documentation for the
observe_form? I have some problems with it and find nowhere a
documentation.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
0
Observe_form and ssl on IE
Can anyone help with some strange error messages I''m getting on IE when
using observe_form.
I''ve written some code to observe a set of radio buttons and it all works
fine in Firefox but when using IE about 20% of the calls return a
request.status of 12152, ERROR_HTTP_INVALID_SERVER_RESPONSE (and the
occasional 12030, ERROR_INTERNET_CONNECTION_ABORTED). It only happens on
SSL
2005 Dec 23
0
observe_form, ssl and Internet Explorer
Can anyone help with some strange error messages I''m getting on IE when
using observe_form.
I''ve written some code to observe a set of radio buttons and it all works
fine in Firefox but when using IE about 20% of the calls return a
request.status of 12152, ERROR_HTTP_INVALID_SERVER_RESPONSE (and the
occasional 12030, ERROR_INTERNET_CONNECTION_ABORTED).
It only happens on SSL
2005 Dec 29
0
observe_form without an update parameter
I''m using observe_form in a place that does not require any response
from the server. So I do not use an update paramater. But without it
webbrick hangs for a couple seconds and returns a status 500. On
occasion, there will even be an exception in webbrick''s output if I
change the form then quickly click a link before the couple second hang
is done. If a add an update, it
2006 Oct 11
2
Help please with observe_form - not working
My observe_form is basically totally limp. I think it should update without
hitting submit button but even if I hit it , it doesn''t change (doesn''t seem
to post the data).
Can anyone please take a look and see if I"m doing something wrong. TIA
Form:
<% start_form_tag({:action => "livesearch"},
:id => "asearch") %>
2009 Feb 26
1
composed_of, aggregate object isn't saved
I am relatively new to rails and I cannot figure out what is going on
here. I am using the composed_of method in an ActiveRecord class to
create two aggregate properties: shipping_address and billing_address.
The object properties are getting populated from the form and validation
is working - no problem. When I call order.save, though, everything is
being saved except the address fields. I am not
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There,
I''m trying to user fields_for inside a form_tag, but i can''t catch it
on my controller.
I just take some html code off to makes it easy to read
my view...
i''m using campuses_path(current_church, @campus) instead form_for
@campus, because my route is like
resources :campuses, :path => ":church/campuses"
<%= form_tag
2006 Apr 04
5
Database usage technique -- user-specified fields
Hello folks-
In one particular app, it would be useful for the customers to be able
to specify the significance (and presence) of fields. For example,
consider a CONTACTs database. User 1 wants to have phone1, phone2,
phone3, and User 2 wants to have 4 address fields.
Generically, this could be done by having a CONTACT with, say, 10
strings, 10 integers, etc. The user''s account
2005 Oct 07
2
Some Ruby code help?
Hi,
This isn''t related to Rails itself, but rather to Ruby. I''m trying to
import a file into a database. The fields are separated by a ''|''.
Everything seems to work fine, but after 64 rows are inserted, it starts
mangling the field values. Would you take a look at the following code?
require ''mysql''
def capitalize(str)
2006 Jun 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form
asynchronously. Easy done. However, we also want to add an
observe_form tag to check for some value changes while the form is
being entered.
The observe_form tag needs a dom id to work on but I can''t see how to
enter an html option for the dom id of the form on the
form_remote_tag.
Any ideas?
Here is the form tag so far...
2007 Jul 26
0
Problems with RJS & Ajax
I try to create an "onKeypress" event handler for a form but nothing
works!
I have already studied the reference books on Ajax, but that didn''t
help.
Can someone explain me how todo this?
These are the code-snippets:
1) application.js
var GridControlTracker = {}
GridControlTracker = {
gridEventHandler: function(element, value) {
alert(''Key Pressed / element:
2006 Oct 12
3
Help with observer_form , javascript error
I''ve set up an observer form, it is not working nor throwing error at least
in loading the page.
The Firefox javascript console is showing this error:
Error: missing } after property list
Source File: http://localhost:3000/ajaxsearch/list
Line: 165, Column: 45
Source Code:
hide(''roller'')}, parameters:''Form.serialize(''asearch'')='' +