similar to: Parent Child form using Partials

Displaying 20 results from an estimated 200 matches similar to: "Parent Child form using Partials"

2006 May 17
4
NOOB: Representing linked objects in one form
Given two models: User :name :email :address_id # foreign key Address :line_1 :line_2 :city etc. I want to have a form allowing a user to register, in which she''d enter an address as well, but how do I go about combining both objects into the one form? I''m new to this and following along with the Agile Rails book from the Pragmatic Programmers, but it
2006 Jan 06
6
HABTM problem not saving all associations
Hello all, I have an Order object that has and belongs to many Products and has and belongs to many Loan Types. This is so I can select multiples of each in my order entry screen via checkbox groups. I''m having some trouble with saving multiple HABTM associations for a single model object; only the first HABTM association declared in the model will save during the initial @order.save
2017 May 08
2
Call does not go voicemail
The "error" I was talking about was in your log: "...== Spawn extension (extensions, 4, 3) exited non-zero on 'IAX2/home_server-6364'..." The call terminated here in a error which prevented the dialplan from continuing. Something there is broken, my recommendation is to check you registrations first inside asterisk: > sip show peers Something wasn't
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi, I use ruby console to experiment acts_as_ferret, but I ran into file rename error when I try to rebuild index after doing a search. is this normal? I am using Ferret 0.10.9 in windows XP. Loading development environment. >> Address.rebuild_index => {} >> Address.find_by_contents(''US'') => #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2006 Jul 30
3
ActiveRecord - Multiple Address for a single record
I''m trying to figure out the Rails way to model the following problem: I have 2 tables. One (let''s call it location) contains a single address. The other (let''s call it company) contains 3 address. I''m trying to figure out the best way to model this. I''ve created an address table, a set up the model as follows: class Address <
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 Jul 06
2
Not accepting nil values in fields when CREATING a record
Hello, I have a question for you. In my application, I want to make sure that the database doesn''t have any NULLs in fields. I can''t use validates_presence_of, because it will puke if there''s an empty string ("") So... is there an EASY way to check if a list of fields is null? Right now, I''m doing: def validate() [...]
2006 Dec 15
1
Ferret debugging
Is there any way to debug processes of creating/updating of index and data retrieval? I use ferret (0.10.13) and acts_as_ferret plugin, and it seems that index is being updated - field ''state_or_province_or_region'' has value ''ON'': ferret_create/update: Entity : 1 creating doc for class: Entity, id: 1 Adding field description with value ''Sed metus
2005 Jan 06
2
Multiple lines on Cisco 7960
I have been trying to get multiple lines on the 7960 to work for several days. i have read all the posts I can find and have run multiple "sip debug" and have gotten no place on this. Here are the relevant section of the config files: sip.conf [scott] type=friend host=dynamic username=scott secret=scott context=default mailbox=6101 callerid=Scott Henderson [scott1] type=friend
2006 Aug 15
5
Ferret Segmentation Faults
Hi, I am getting a number of segmentation faults using Ferret 0.9.5, Fedora Core 5 and Ruby 1.8.4 I installed it with the recommended gem install ferret and example segmentation fault creation line would be as follows: @records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"") I am also using acts_as_ferret and rails 1.15 but think this is an issue with
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi, can''t find any good tutorial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s
2006 Aug 10
4
exporting vcards from rails
i''m doing a site for someone that has a form set up to collect contact information from the user. i installed the vpim gem and was hoping to give my client a way to download all of the contact''s information as a vcard. using the examples, i was able to get it working in ruby, but i''m not quite sure how to generate and download a vcard on the fly. has anyone done
2006 Jul 14
1
auto completion with composite field
How can auto completion be done for a composite field ? Concrete problem : Suppose the class Person with reference to a City object. The City has a name and a postal code. When entering a Person I want to enter the city in one text field that shows a composition of the city name and the postal : "city (postal)". And this with auto complete (and should afterwards be linked to the
1998 Jun 25
1
Slow Printing (2nd Attempt)
( I thought I sent this message out before, but never saw it in the digests ) Configuration : Windows NT 4.0 clients printing to Samba 1.9.18p8 running on Solaris 2.6/2.51 machines. The Samba servers are setup like this : ... security = server password server = %m encrypt passwords = yes networkstation user login = no ... So the server uses the
2006 Jun 01
3
more questions: human_name
One more question: Is there some way to set the human_name of a column? e.g.: human_name for column address1 shouldn''t be Address1 but "Address, line 1". If not, should I make a hash with my custom names? Best regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA
2008 Jul 07
6
Discuss Your Rails Hosting here, with rates & experience
Hi to all, I have seen many threads here that talks a bit on Hosting scenario and keeps the matter hanging and discussions gets truncated without any outcome. It would be nice to have a serious thread like this, where we can discuss few things as follows... (1) Your Rails Hosting Company (2) Your experience with that Hosting Company (3) Your currently plan and Your Rates (4) Helping /
2008 Jan 10
0
local variable simulation in partials
Hey people.. I often hit name clashes when using partials, take the following example... <%= partial :clip, :url => ''http://www.jeff.com'' %> I will not be able to access my url variable, because the local variable will not override the #url method. This is contradictory to how most "local" variables work. Can I fix this, or is this behavior for some other
2007 Dec 19
2
Nested partials losing the view context ?
Hi all ! I can''t seem to make a simple thing work... The code is here: http://pastie.caboo.se/130660 Essentially, that''s a form with a couple of partials. The backtrace is included in the pastie. It looks like the context for the current view is lost when a partial is rendered. In _series.html.erb:2, I use "series" to get the name. This is the parameter I
2006 Aug 05
1
form_for and partials
I''m getting an error in the partial when i try <% form_for :name do |form| %> <%= render_partial "#{@current_stage}" %> <% end %> So I assume that form_for does not have scope in the partial? If that is the case what are my solutions... Do I have to stick a <% form_for in every partial, or do i just change all my inputs back to text_field
2006 Aug 08
3
Rendering partials based on conditions
Hi, A bit unsure how this gets accomplished - particularly how it might get set up in the layout. Currently - This is my welcome.rthml (what comes up at main page) <% if @u %> <%= render :partial => "main/session" %> <% else %> <%= render :partial => "main/login" %> <%= render :partial => "main/register" %> <% end %>