search for: id001

Displaying 20 results from an estimated 27 matches for "id001".

2009 Mar 08
1
re shaping a data frame with multiple IDs
Dear R-experts, I have the following "long" data frame: ID <- c("ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID001","ID002","ID002","ID002","ID002","ID002","ID002",&quot...
2006 Dec 19
1
mongrel_config has no output
....0.1... Connected to localhost. Escape character is ''^]''. GET /config/ HTTP/1.1 HTTP/1.1 200 OK Connection: close Date: Tue, 19 Dec 2006 05:33:16 GMT Content-Type: text/html Content-Length: 0 Connection closed by foreign host. Here is a YAML dump of the $server object: --- &id001 !ruby/object:Mongrel::HttpServer acceptor: !ruby/object:Thread {} classifier: !ruby/object:Mongrel::URIClassifier handler_map: /log: - !ruby/object:Mongrel::DirHandler default_content_type: application/octet-stream index_html: index.html listener: *id001 listing_a...
2006 Apr 27
4
Sessions Problems
Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
2005 Dec 16
3
Help with error
I am getting this error NoMethodError in Admin#add_to_project undefined method `find'' for #<Project:0x249da88> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/ base.rb:1501:in `method_missing'' ./script/../config/../app/controllers/admin_controller.rb:65:in
2007 Nov 14
1
has_many_polymorphs and acts_as_list ?
...onsole: >> c = Collection.create(:name => "C1") >> c.elements << Page.create(:name => "P1") >> c.elements << Page.create(:name => "P2") >> y c --- &id006 !ruby/object:Collection attributes: name: C1 updated_at: &id001 2007-11-14 13:17:45.877143 +01:00 id: 1 created_at: *id001 belongings: - !ruby/object:Belonging attributes: updated_at: 2007-11-14 13:18:39 element_id: "1" id: "1" collector_id: "1" element_type: Page position: "1" created_at...
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
...de *should* be pulling back is: $ hiera -c hiera.yaml filer_name clientcert=puppet-test.card.co.uk puppet-test filer I am using an ENC with this puppet install, however that all appears to be working fine aswell... Node ENC details are: $ ./node.rb puppet-test.card.co.uk --- environment: &id001 test classes: - act::products::cms parameters: root_pw: xybxa6JUkz63w location: star-int foreman_env: *id001 hostgroup: linux puppetmaster: puppet When I do a ''*puppet agent -t*'' run on *puppet-test.card.co.uk*, I get the following logged: [gavinw@pup...
2007 Oct 07
1
activerecord problem with contrains,belongs_to and has_many keyword
...ent. for example: I have a view where I can edit an advertisment. In this view I wanna display the images as well.. My problem is, that the advertisement doesn''t fetch the images automatically. When I dump the advertisement via <%= debug @advertisement %>, my output is : --- &id001 !ruby/object:Advertisement attributes: valid_to: "2007-10-06" body: some text title: Villa Katherina service: id: "1" valid_from: "2007-10-06" active: "0" parent: errors: !ruby/object:ActiveRecord::Errors base: *id001 errors: {} I must ha...
2010 Mar 23
0
Frozen hash problem
I''d like to delete some records before saving them. I ran this experiment: before_save :prune_lab_datas def prune_lab_datas lab_datas.each do |lab_data| lab_data.destroy end raise lab_datas.to_yaml end But nothing seems to be deleted in the hash: --- - &id001 !ruby/object:LabData attributes: created_at: 2010-03-21 22:16:06 unit_id: "3" lab_id: "81" updated_at: 2010-03-21 22:16:06 id: "184" lab_desc_id: "6" value: "29" attributes_cache: {} changed_attributes: {} error...
2007 Mar 05
3
Cannot save session in IE6
A search only returned this thread: http://www.ruby-forum.com/topic/71970#101107 FF and IE7 both accept and store sessions as such: --- !ruby/object:CGI::Session data: &id001 :person_id: 1 :person_name: Bob flash: !map:ActionController::Flash::FlashHash {} But IE6 refuses to store the session and returns this: --- !ruby/object:CGI::Session data: &id001 flash: !map:ActionController::Flash::FlashHash {} Can filenames or underscores cause this problem? Any...
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is. Anyway if I do just session[user] I get back the user id (the id from the user table) which is good. However this code does not work. <% a = session[:user] %> <% uname = User.find(:first, :conditions => id = a) %> <%= @uname %> TIA Stuart
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
...re_record_can_be_created'']: errors: --- &id002 !ruby/object:ActiveRecord::Errors base: !ruby/object:SubscriptionPlan attributes: price: 55.25 duration_in_months: 17 deleted_at: publication_id: 1 active: false errors: *id002 new_record: true publication: &id001 !ruby/object:Publication attributes: long_name: J. Taylor''s Gold & Technology Stocks id: "1" version: "1" short_name: gold errors: !ruby/object:ActiveRecord::Errors base: *id001 errors: {} errors: publication: - is in...
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
...n the content is indented with 2 spaces and some facts give me garbage values. If I verify this on e.g. http://yamllint.com/ I have a syntax error with the 2 leading spaces. Snippet from ''/etc/mcollective/facts.yaml'' [root~]# cat /etc/mcollective/facts.yaml architecture: &id001 x86_64 hardwareisa: x86_64 hardwaremodel: *id001 kernelrelease: 2.6.18-274.17.1.el5xen clientversion: *id002 kernelversion: 2.6.18 lsbdistcodename: Final lsbdistdescription: CentOS release 5.8 (Final) lsbdistid: CentOS lsbdistrelease: "5.8" lsbmajdistrelease: "5&q...
2008 Jan 12
1
Collection_Select not showing Selected option
...;td><%= collection_select(:driver,"product_line_id",@productline,:id,:name) %></td> </tr> ### The controller; ### def driver_edit @drivers = CallDriver.find(params[:id]) @productline = ProductLine.find(:all) end ### And the debug results for CallDriver --- &id001 !ruby/object:CallDriver attributes: name: Billing (TV) segment_id: "1" platform_id: "1" updated_at: product_line_id: "3" id: "2" sub_product_line_id: "7" consolidation_id: "1" skill_id: "1" created_at: 2008-01...
2006 Oct 16
3
Saving many_to_many
Ahoy, i''m trying to save a many to many between "talent" and "vital stat" talent_controller.rb def edit @talent = Talent.find(params[:id], :include => [:talent_type, :vital_stats]) @talent_types = TalentType.find_all @vital_stats = VitalStat.find_all if request.post? @talent.attributes = params[:talent] @talent.attributes =
2006 Nov 06
4
Confirmation fields on forms
I am unsure how to use a confirmation only field in my forms. The perfect example is when registering a user, you want them to type their password twice but you only want to have one record for it. The form fields; user[password] user[password_confirmation] form posted; user = User.new @params[:user] Error is thrown because there is no method for password_confirmation. -- Posted via
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all, I cannot make aaf (rev. 220) use my custom analyzer, despite following the indications @ http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage To pinpoint the problem, I created a model + a simple analyzer with 2 stop words : "fax" and "gsm". test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a stop word. => I get a
2006 Apr 04
2
HABTM
.../lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /dp/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/=20 dependencies.rb:136:in `require'' script/server:3 Request Parameters: {"id"=3D>"2"} Show session dump --- user: &id001 !ruby/object:User attributes: salt: b40f4edfd113ce8c82e8283281697e8af6d09520 delete_after: role: security_token: a61f0622696cdf5d4da640091f73be700ea44f5a id: "2" firstname: Tobias lastname: Bender token_expiry: 2006-04-05 13:45:59 deleted: &...
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator.. it''s a great little package, but i am running into one little problem.. i would like to have something that says: "logged in as <username>" in the site, but i am not quite getting it.. what i am using is: <p>You are logged in as: <%= @session[:user] %> but i have tried: <p>You are logged in as:
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All, I have some strange problem which appears only on heroku hosting 2.3.5 default stack (not on my local computer) I have some models. Here they are: class Contact < ActiveRecord::Base belongs_to :user belongs_to :type, :class_name => "ContactType", :foreign_key => "type_id" validates_presence_of :name, :on => :create, :message =>
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
...t/dependencies.rb:147:in `require'' script/server:3 Request Parameters: {"user_login"=>"admin", "user_password"=>"admin", "login"=>"Login", "remember_me"=>"0"} Show session dump --- :user: &id001 !ruby/object:User attributes: created_on: 2006-04-08 19:50:58 last_login: 2006-04-10 12:37:29.044000 +02:00 name: admin updated_on: 2006-04-10 12:37:29.104000 +02:00 admin: "0" id: "1" remembrall: prefs: >2- --- animate: true...