search for: parent_name

Displaying 13 results from an estimated 13 matches for "parent_name".

2006 Apr 07
2
errors.add_to_base
...quot;Name is required.") validates_uniqueness_of(:name, :message => "This name is already in use. Please try another.") # counter_cache should be set to true, but it is broken! acts_as_tree :order => "name", :counter_cache => false def set_parent(parent_name) if (parent_name == '''') ###### WHY IS THIS NOT WORKING ????? errors.add_to_base("Name of parent cannot be empty") elsif (self.name == parent_name) errors.add_to_base("Parent invalid: a keyword cannot be a parent of itself!") e...
2006 Jan 01
7
[ ANN ] Hieraki2
Happy new year! Hieraki 2.0.0 is released. You can download Hieraki2 from rubyforge.org as tgz or zip (http://rubyforge.org/projects/hieraki). Hieraki2 has a new wiki engine that ships with more than a dozen new features: * everything-is-a-wiki-page (TM) * all pages are under version control * access control list * stay in full control of the tree structure by cut and pasting
2007 Jan 14
3
Podcast API?
Hi, I''m looking into developing an API for publishing videso/audio/etc to iTunes using Rails. Has anyone done anything like this? or can point me in the right direction? The web doesn''t seem to have anything on it, regarding Rails or other technologies. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2006 Apr 26
2
Retrieving :id without passing it
...similar to, say, how http://rails.techno-weenie.net calls the specific questions on his site. I can currently map the url correctly, however I have no way of retrieving the proper value of the id from the url to determine what page to render. My routes.rb looks as follows: map.page '':parent_name/:page_name'', :controller => ''admin'', :action => ''render_page'', :requirements => { :parent_name => /[\w-]+/, :page_name => /[\w-]+/ }, :page_name => nil Can I pass the ID of the page without actually revealing it within the URL? Or...
2007 Jan 23
0
validates_presence_of fields. in parent ok, but how in children?
...s are filled correctly everything is saved as expected. but missing fields in the child arent added to the errors. following short sample shows what i try: Model ----------------------------------------------------- class Parent < ActiveRecord::Base has_one :children validates_presence_of :parent_name def init! self.build_children end end class Children < ActiveRecord::Base belongs_to :parent validates_presence_of children_name end controller ------------------------------------------------------ @parent = session[:parent] ||= Parent.new @parent.init! @parent.save => the a...
2008 Jun 04
12
Mongrel as Windows service with normal privileges
I am trying to run Mongrel 1.1.5 with mongrel_service 0.3.4 on Ruby 1.8.6 with a "normal" user account, i.e. a user which belongs only to the Windows group "Users". The rationale behind this is that running a web server with full administrative rights (e.g. Local System) is not something that I would like to do. Unfortunately, starting the service from the services control
2007 Oct 01
0
View Spec - Misbehaving
...pec; I''ve done some controller specs with integrated views, but thought that isolating the views for some of these tests might be nice. So I wrote this: > describe PlayerContainer, "show" do > > PARENT_ID = 12 > CHILD_NAME = ''Child Name'' > PARENT_NAME = ''Parent Name'' > > before(:each) do > parent = mock_model(Customer) > parent.should_receive(:name).and_return(PARENT_NAME) > parent.should_receive(:id).and_return(PARENT_ID) > @container = mock_model(PlayerContainer) > @container.should_...
2006 Apr 21
5
installing hieraki help
Ahoy, I tried to install hieraki and it was a big mess. 1) upload_progress module needed to be installed 2) no test/development server configured in the config file so i had to add those 3) no log directory, had to add that 4) had to install 2 gems (ok fine) 5) once the server started, go to homepage and " NameError in Wiki/pageController#index uninitialized constant Node RAILS_ROOT:
2006 Jan 04
4
Problems with Hieraki 2
hi, I''ve already set up hieraki2 (database.yml: configured, schema.mysql.sql: imported). I noticed that there is no user (table "users" is empty) and I can''t login. So what should I do to use hieraki2? :) The title is "Root | Demo" - Why "demo"? I tried to create account called "root" using "signup" form. I''ve got
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2006 Jan 17
6
An object that initializes multiple objects?
...d as a result of this form submission, a table "student_record" that has "id", "name", and "id_number" (not to be confused with "id", it is more like "passport number"), as well as another table "contact" with the fields "parent_name", "street_1", "street_2", "town", "postcode", "state" as well as "student_record_id" which is a foreign key pointing to the id of the associated "student_record". Now, strictly speaking it can be argued that all of these...
2013 Oct 28
5
FreeBSD PVH guest support
...) #endif diff --git a/sys/xen/xenstore/xenstore.c b/sys/xen/xenstore/xenstore.c index d404862..b9885af 100644 --- a/sys/xen/xenstore/xenstore.c +++ b/sys/xen/xenstore/xenstore.c @@ -1082,6 +1082,19 @@ xs_init_comms(void) static void xs_identify(driver_t *driver, device_t parent) { + const char *parent_name; + + if (!xen_domain()) + return; + + /* + * On HVM domains we will get called twice, once from the nexus + * and another time after the xenpci device is attached, we should + * only attach after the xenpci device has been added. + */ + parent_name = device_get_name(parent); + if (xen_hvm_doma...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...ot;strdup"); - exit (EXIT_FAILURE); - } + if (!vfs_uuid) + error (EXIT_FAILURE, errno, "strdup"); } } if ((columns & COLUMN_SIZE)) { @@ -518,10 +515,8 @@ do_output_lvs (void) } if ((columns & COLUMN_PARENTS)) { parent_name = strdup (lvs[i]); - if (parent_name == NULL) { - perror ("strdup"); - exit (EXIT_FAILURE); - } + if (parent_name == NULL) + error (EXIT_FAILURE, errno, "strdup"); char *p = strrchr (parent_name, '/'); if (p) *p...