Displaying 5 results from an estimated 5 matches for "rlundi".
Did you mean:
lundi
2008 May 06
0
Find with Inheritance
Hi,
I have the following structure with my models:
A member inherits from a company
A applicant inherits from a company
An application has an applicant
An application has a member
I am attempting to do a find on the applications table where the
search term either matches the applicant name or the member name.
So far I have the following find statement:
Application.paginate(:all,
2009 Apr 21
0
Nested forms without looping through fields_for collection.
Hi,
I have a fairly complex form and I am wondering if it is even possible
to do what I am attempting.
I have multiple models included in the form. A small example would be
the following:
Company has many Locations
Company has many PhoneNumbers... and so on
I have this working without issue using Rails 2.3 and nested forms.
Where this becomes complex is that I also have another model named
2007 Oct 17
2
Complex Forms (From Railscasts.com)
Hi,
I have been watching the last three episodes on railscasts.com in
which he goes through dealing with multiple models in one for using
fields_for, and virtual attributes. (http://railscasts.com/episodes/
73). Here is an example of the way they suggest to go about it:
# projects_controller.rb
def new
@project = Project.new
3.times { @project.tasks.build }
end
def create
@project =
2007 Feb 08
1
undefined method `find' for Status:Class
Hi,
I have attempted to install radiant on my server using mongrel. I have
it working fine using lighttpd on my development box, but as soon as i
attempt to run it using mongrel I get the following error:
NoMethodError (undefined method `find'' for Status:Class):
/app/models/page.rb:49:in `status''
/app/models/page.rb:57:in `published?''
2008 Feb 07
11
Multiple Views within subfolders
Hi,
I am creating an application in which I am allowing users to have
customized views of a form. These forms do not have to be customized
at this point by the user, but will for now be customized by us, and
uploaded to the server.
My idea was to take the similar approach done by the plug in
acts_as_attachment, and, have a default layout stored in the normal
views/controller_name folder, but