similar to: Using same form for two models

Displaying 20 results from an estimated 30000 matches similar to: "Using same form for two models"

2007 Jun 24
6
I only want one type of model returned from a multi_search
I am trying to use acts_as_ferret''s multi_search to search across multiple models, but i only want it to return one type of model. for example i have a page that lists out people. on this page it shows email addresses and phone numbers. I want to be able to search by any fields directly from the person model and search the fields from the email_address and phone_number models, but I only
2005 Dec 17
1
How to use validation with aggregation (composed_of)?
At the risk of being banned for posting the same question twice, I thought I''d try once more with a question for the title rather than a statement (on the basis that perhaps questions get answered and statements ignored ;-) ) ActiveRecord supports composed_of for value objects which is fantastic but one thing that it doesn''t seem to support (or at least I am unable to
2005 Dec 16
4
Validation with Aggregation
ActiveRecord supports composed_of for value objects which is fantastic but one thing that it doesn''t seem to support (or at least I am unable to find any documentation for) validation of the value objects. For example, given the following: class Message < ActiveRecord::Base composed_of :sender, :class_name => ''EmailAddress'' composed_of :recipient,
2006 Jun 22
1
error messaging for a form without ActiveRecord model
I have a form that has no ActiveRecord model behind it, it is just composed of random fields like "email_address", "email_body", etc. Even though there is no model, some of these fields are required, and I would like to use the built-in Rails methods for automatically showing errors in the form. Unfortunataely, I can only see how to do this if the form is based on an
2006 May 19
2
Problem with joins and overlapping field names
Hi, I have the following code: @conversation_pages, @conversations = paginate(:conversations, :per_page => 20, :joins => ''LEFT JOIN messages on messages.conversation_id = conversations.id ''+ ''LEFT JOIN email_addresses on
2008 Mar 11
1
add_multiple_associated_save_callbacks and validates_associated conflict?
Perhaps I''m misunderstanding what''s happening here, but I''m having a problem with not being able to disable the validation of an associated collection if that collection contains a new record. Example... class Person < ActiveRecord::Base has_many :email_addresses validates_associated :email_addresses, :if => Proc.new { false } end p = Person.new
2006 Jun 30
2
Help with translating an object model to a relational mode
Hello rails friends, I am writing a soap interface to a databse for a .Net guy in rails. Actionwebservice kicks ass, however, I need some help translating the object model to a relational one: class Customer{ string firstName #blah string[] email_addresses PurchaseHistory[] myPurchases } class PurchaseHistory{ #blah blah blah } The object model is non-negotiable. I am not
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello, I just can''t seem to find a way to extend a form dynamically in ROR. Say I am writing a recipe website. There is one form to enter the recipe. There is room for N number of ingredients (let''s say a text field for each ingredient name and selection list for the amount). What if the user wants to add more than N ingredients as he types them in? how do I do this without
2006 Apr 23
3
custom form builder
In the API docs I found this: "You can also build forms using a customized FormBuilder class. Subclass FormBuilder and override or define some more helpers, then use your custom builder " I couldn''t find any further documentation on this. Where can I read more about this formbuilder class? For starters, where would I define a subclass of this class? TIA, Jeroen --
2006 Aug 03
2
inserting values in two tables at one button click
hi, i am new to Roby on Rails. we have a project on this. i have very much satisfied with development with this environment. it is very iteresting. but i have a problem with insertion. my problem is: i have to insert values into two tables at one submit. i am using mysql as db. i have created two tables which has one to one reelation ship. once i enter name and email address and role. name
2010 Jun 25
0
WG: Samba PDC and big files
Hello, If I understand it right you want to have the same Outlook profile for the users no matter on which workstation they login? The first thing all user must have the same Version of Outlook!!!!! And use an IMAP SERVER Then you must work with prf files for outlook for eauch user in your netlogon path of samba I am working with kixstart. On sigining in each user get his pref file. You can
2006 May 19
2
1 Form for Model containing another Model??
Hi, I can have a Person model with a "has_one :address_email" association, then do the following in my controller: @person = Person.new @person.address_email = AddressEmail.new But, when I have 1 form for "Person" in my view I can''t bind fields in the @person.address_email object with text_field or text_field_tag helpers without getting a "undefined local
2019 Jun 29
1
Dovecot 2.3.0 TLS
On 11.01.2018 13:20, Hauke Fath wrote: >/On Thu, 11 Jan 2018 12:20:45 +0200, Aki Tuomi wrote: />>/Was the certificate path bundled in the server certificate? />/No, as a separate file, provided from the local (intermediate) CA: />//>/ssl_cert = </etc/openssl/certs/server.cert />/ssl_key = </etc/openssl/private/server.key />/ssl_ca =
2015 Jan 16
0
dsync SSL fails since 2.2.15
Hello list, dovecot ran rock-solid on OSX Mavericks for about 1 year replicating my mail between 2 servers via dsync with SSL as that is well described here: http://wiki2.dovecot.org/Replication After upgrading to 2.2.15, dsync gets stuck with the Error: "Received invalid SSL certificate" even though neither any of the dovecot configs nor the certs, keys or the CA have changed! When I
2010 Jul 10
0
TLS handshaking error: unknown ca
I'm running Ubuntu 10.04, recently upgraded. My dovecot version is 1.2.9. My SSL/TLS authentication with dovecot from non-local IP's has stopped working, and I can no longer access my mail securely. I have changed all entries to refer to my server as "host". I am the only user, and am OK with the a self-signed cert. When I try to connect using Thunderbird, the certificate
2016 Oct 24
1
Problems with VPN Connection
Good afternoon Best regard I'm having trouble with a CentOS server release 5.10, so that my users connect via VPN Intranet type, I could not find a solution, if I can collaborate appreciate them, attached logs when it worked and now. Log running: Mon Oct 10 13:50:02 2016 193.60.90.72:23683 Re-using SSL/TLS context Mon Oct 10 13:50:02 2016 193.60.90.72:23683 LZO compression initialized Mon
2015 Jun 16
0
LDAPS Configuration
2015-05-02 12:06 GMT+02:00 Daniel Carrasco Mar?n <danielmadrid19 at gmail.com>: > Hi, > > I'm trying to convert my LDAP server into a LDAPS server to secure the > users logins, but I don't know what's the procedure to do it. Someone knows > any guide to do it? > > For now: > > - I've created a CA cert on the server > - I've created the
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi, does anybody know if TMail supports nested multipart messages? I read a changelog that indicates so (http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.dirname(__FILE__) +
2006 Mar 01
3
SwitchTower: Two development environments
Hi I have a problem here. I am developing an application which has a local development environment (on my harddisk), a second one for my customer (for testing new features) and a production environment which runs actual application online. How can I setup SwitchTower to have a possibility to deploy just for a particular server? Thanks, Peter
2006 Aug 16
4
Overwrite form helper methods and call old ones in new ones?
Hi all All my forms should look the same, so I think always putting the right div etc. tags around them is a violation of the DRY principle. Until now my forms look like that: <div class="text_field"> <label for="news_item_subject">Subject:</label> <%= text_field "news_item", "subject" %> </div> Now I want the default