Displaying 4 results from an estimated 4 matches for "environment_id".
Did you mean:
environment_
2006 Feb 11
3
Creating new object using params posted from form
Hi,
I have a problem creating an new instance of an object using params posted
from a form.
The object being created is not a sub class of ActiveRecord and is very
simple. It''s model file is just:
class Search
attr_accessor :major_build_id, :minor_build_id, :environment_id,
:system_id
end
The controller creates an empty instance variable the first time the page is
called, else it tries to populate it with the values of params from the
form.
class ResultsController < ApplicationController
def index
list
render :action => ''list''...
2011 Nov 20
2
Foreman API, problem when creating hostgroups
...ng to create a hostgroup using the Foreman API
(foreman-0.4-0.1rc1.noarch):
Using perl v.5.14.2, REST::Client et. al., ending up with sending:
POST /hostgroups
{"name":"api-created-
hostgroup","architecture_id":"","medium_id":"","environment_id":"","operatingsystem_id":"","ptable_id":"","puppetmaster":"puppet.dev.somewhere.com","root_pass":""}
which returns a 422-error
[that is: 422 Unprocessable Entity (WebDAV) (RFC 4918) - The request
was wel...
2007 Jun 03
3
Contextual Associations
No doubt this has been covered but I''ll be damned if I can find it.
References appreciated so I can add to my library.
1. I have 3 tables in my problem: changes, environments, comments
2. changes are many-to-many to environments
3. changes has-many comments
Here''s the tricky part:
4. environments has-many comments dependent on the current
environment.
Tables:
changes,
2013 Oct 16
9
puppetdb, foreman, one particular node has a problem
...t;, "environme...
: INSERT INTO "hosts" ("architecture_id", "build", "certname", "comment",
"compute_resource_id", "created_at", "disk", "domain_id", "enabled", "environment",
"environment_id", "hostgroup_id", "image_file", "image_id", "installed_at",
"ip", "last_compile", "last_freshcheck", "last_report", "location_id",
"mac", "managed", "medium_id", "mode...