similar to: struggling with relatively simple out of model updating

Displaying 20 results from an estimated 900 matches similar to: "struggling with relatively simple out of model updating"

2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %> which returns in params :in_out: !map:HashWithIndifferentAccess time_in(1i): "2006" time_in(2i): "6" time_in(3i): "12" time_in(4i): "20" time_in(5i): "24" and I want to save that datetime to a column in the db... if
2010 Mar 09
0
Tukey test for Mixed Effects Model with more than 1 fixed effect?
I am trying to decipher, via post hoc test (Tukey), which of my sites differ from eachother. I have 4 sites, 2 sets of In vs Out (MPA) in separate Regions. Therefore my Mixed Effects Model code has 2 fixed effects: CB.lme <- lme(AsinCB~ In_Out*Region, random = (~1| site.trans/Quadrat) , data = Subsampled_props, control = lmeControl(maxIter = 500, msMaxIter = 500, msMaxEval = 500))
2006 Jul 02
3
difficult view code logic
this one really has me stumped... <%= user.in_out == "In" ? {image_tag url_for_file_column("personnel", "image", "thumb")} if user.image : user.in_out %> What I am wanting to do... if user.in_out == "In", load their thumbnail if it exists, load public/images/in.jpg if not, or else load public/images/out.jpg Can someone help with the
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone, For one of our projects we have a need to deploy and maintain a demo. As a result I''ve attempted to setup a set of rake tasks for the job. My goal is have one rake task called "deploy_demo" which purges the database, migrates to the current schema, and loads the db from a set of fixture files in a specified location. I''ve written two new tasks the perform
2001 Jun 02
2
inout() in splancs working properly?
I have a problem with function 'inout()' in package 'splancs' on CRAN-R Version 1.2.3 under FreeBSD4.3-STABLE. The following script produces and draws points and a polygon-surrounded area. Repeating the same script many times shows, that points on the polygon-line often, but not always, are outside of the polygon-area. library(splancs) # dataset with polygon (convex
2006 Apr 19
0
Some strange questions about SQL
1. Table dealings has the field: id(int(11)), inout(varchar(11)) If I use this select: @deals = Dealing.find(:all,:condition=>["id = ? and inout = ?","1","in"]) then rails will return error with the tips of SQL syntax error if I change it to : @deals = Dealing.find(:all,:condition=>["dealings.id = ? and dealings.inout =
2011 Jul 12
1
What's wrong with my code? (Edited version-added my data)
I've written out codes for one particular file, and now I want to generate the same kind of graphs and files for the rest of similar data files. For example, a file "8.csv" would look like such: enc_callee inout o_duration type A out 342 de B in 234 de C out 132 de E in 111 de A in 13 cf H in 15.7 cf G out 32 de A out 32 cf I in 14 de K in 189 de J out 34.1 cf B in 98.7 de H out
2005 Apr 04
0
Validation problem with active record: AssociationTypeMismatch
[Rails] Validation problems: ActiveRecord::AssociationTypeMismatch Hi everyone, I''m starting on my first rails project and I have a problem that I''m sure has a simple solution. I have two models, an address model and a state model. The address belongs_to :state, foreign_key=>"state" and validate_associated :state I have new & edit controllers for address
2010 Oct 15
0
AssociationTypeMismatch / Model Caching in development envirnment
Hi there— I''m trying to get started with Rails, and I''ve run into this issue and searched high and low--so hopefully someone can help point me in the right direction. I''m having an issue where my model classes seem to be getting cached by something, and so if I make subsequent requests, I get an AssociationTypeMismatch error. To be specific, on update is where it
2006 Jul 18
3
DB Migrations & Column Order
Hello, I created a table and about 10 migrations down the line I decided that I needed to add an ID column (this was actually a table for a has_many :through and I recently realized that it needs an ID column, unlike HABTM tables). I am a big perfectionist and I frequently run "SHOW COLUMNS IN table;", so I naturally expect to see the "id" column the first one listed. However,
2015 Dec 04
0
[PATCH 1/6] x86: Add VMWare Host Communication Macros
These macros will be used by multiple VMWare modules for handling host communication. Signed-off-by: Sinclair Yeh <syeh at vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com> Reviewed-by: Alok N Kataria <akataria at vmware.com> Cc: Thomas Gleixner <tglx at linutronix.de> Cc: Ingo Molnar <mingo at redhat.com> Cc: "H. Peter Anvin" <hpa at
2015 Dec 04
0
[PATCH 1/6] x86: Add VMWare Host Communication Macros
These macros will be used by multiple VMWare modules for handling host communication. Signed-off-by: Sinclair Yeh <syeh at vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com> Reviewed-by: Alok N Kataria <akataria at vmware.com> Cc: Thomas Gleixner <tglx at linutronix.de> Cc: Ingo Molnar <mingo at redhat.com> Cc: "H. Peter Anvin" <hpa at
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
hello, i am trying to upload a image file ...using paperclip in rails 3 i did as follows 1. In gemfile => included gem paperclip 2.In config/environments /development.rb => Paperclip.options[:command_path] = "/usr/bin/" (convert path) 3.created a controller *picusers *and defined => def create @picuser = Picuser.create(params[:picuser]) end 4.created a model *picuser
2009 Feb 02
2
ActiveRecord::AssociationTypeMismatch (User(#54754560) expected, got User(#54510280))
i keep getting this AssociationTypeMismatch error. i think this could be a bug related to ruby/rails when using mixins. heres a short version of my code: # user.rb require ''friend_invitation'' require ''friendship'' class User < ActiveRecord::Base include FriendInvitationUser, FriendshipUser ... end # friendship.rb ... module FriendshipUser def
2007 Nov 29
1
Migration Bug?
Please tell me I''m just confused, but this is very strange. I have a migration like so: class AddLevelToRequest < ActiveRecord::Migration def self.up add_column :requests, :title_levels, :string end def self.down remove_column :requests, :title_levels end end Run the migration, and from the console do: >> r = Request.new => #<Request:0x31a243c
2004 Aug 19
2
glmmPQL in R and S-PLUS 6 - differing results
Greetings R-ers, A colleague and I have been exploring the behaviour of glmmPQL in R and S-PLUS 6 and we appear to get different results using the same code and the same data set, which worries us. I have checked the behaviour in R 1.7.1 (MacOS 9.2) and R. 1.9.0 (Windows 2000) and the results are the same, but differ from S-PLUS 6 with the latest Mass and nlme libraries (Windows XP). Here
2006 Jun 27
6
embedding ruby code in a [flash :notice]
The ruby code in this isn''t evaluated... flash[:notice] = "Your last recorded entry was <%= @in_out.time_in %> <br />You are currently marked as ''In'', you probably want to check ''Out''" Is there a way? Craig
2005 Sep 22
1
AgentRecord In and Out streams
How do I combined these in and out wav files on the fly through asterisk to where I hear the whole conversation and only have one wav-file (i.e. : agent-1001-asterisk-478-1127389080-17-in_out.wav) agent-1001-asterisk-478-1127389080-17-in.wav agent-1001-asterisk-478-1127389080-17-out.wav __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
2006 Jun 03
2
migrations unit test and sqlite3 add_column
Hi all, I submitted a patch the other day for an issue I ran into running an "add_column" migration on a sqlite3 database when there is existing data in the table, and the new column has ":null=>false". Details at http://dev.rubyonrails.org/ticket/5215. The issue I encountered was not picked due to the unit test not having any actual data in it before running the
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
The build failed. CHANGES ------- Revision 8649 committed by gbuesing on 2008-01-16 20:07:10 Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing compatibility with Time. Closes #10002 M /trunk/activesupport/CHANGELOG M /trunk/activesupport/lib/active_support/core_ext/date_time/calculations.rb M /trunk/activesupport/test/core_ext/date_time_ext_test.rb TEST FAILURES AND