similar to: Save only inserts null instead of actual values

Displaying 20 results from an estimated 200 matches similar to: "Save only inserts null instead of actual values"

2008 Dec 03
0
help with rails+sproutcore
I have been trying to use rails as the backend for sproutcore. I am following the tutorial: http://blog.lawrencepit.com/2008/07/19/sproutcore-rails/#comment-4 I have followed all the steps in the tutorial. When I try to run the http://localhost:4020/contacts, its gives me the following console errors: Contacts is not defined [Break on this error] Contacts.detailController =
2006 Apr 22
2
Question about functional tests and log/test.log
Here''s something a bit weird: After running functional tests, my test log contains many lines, including many like these: > Processing UserController#attempt_login (for 0.0.0.0 at 2006-04-22 > 02:38:08) [POST] > Session ID: > Parameters: {"user"=>{"password"=>"bogus", > "email"=>"tmornini@bogus.com"},
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login suport in Depot (the example in the RoR book) and LoginController#add_user throws ActiveRecord::StatementInvalid in an innocent /login/add_user GET request. The trace goes down to a call to SQLiteAdapter#table_structure, and the source code suggests what''s happening is that "PRAGMA
2005 May 08
3
sqlite, views, incorrect data types?
This has been driving me crazy for a few days now. I am using sqlite3 however I have also found this to be the case with 2.8.15: I have data types text or integer on every column of every table in the database. Now i know sqlite doesnt care much about data types, but I believe rails does (correct me if im wrong). On pages that query a table, everything is perfect. BUT when I use a view
2010 Mar 16
4
Get content from HTML element in Rails
Hey, I''m looking for a way to get the content of my div in my Rails view. I would like the literal HTML content, so only HTML and no Rails I thought inner_html would work, but I get a RJS exception (TypeError: $("content").innerHtml is not a function) Does anyone know how I can get the content? Thanks! In my controller I use this code: [code] def save_test render :update
2015 Oct 07
2
Libvirt fails to build with sasl
Description of problem: I try to build a libvirt package for the IPFire project (http://www.ipfire.org/). Without sasl libvirt build fine but with sasl libvirt fails to build with the following message: CC rpc/libvirt_net_rpc_la-virnetsaslcontext.lo In file included from rpc/virnetsaslcontext.h:25, from rpc/virnetsaslcontext.c:26: /usr/include/sasl/sasl.h:230: error:
2010 Jul 16
1
sqldf modify table
Hi - I am something of a newbie and am a little perplexed. When (trying to) modify a table I issue the following commands with subsequent errors sqldf("alter table Korea drop column code", dbname = "mydb") error in statement: near "drop": syntax error or sqldf("alter table Korea rename column hyr to hyrI", dbname = "mydb") error in statement:
2006 Jan 16
0
[newbie] Redundant SELECTs?
Hi -- I''m getting started with Rails by rewriting a little web-app I wrote last year in PHP. (I have a bit of prior Ruby experience, and have been working with SQLite for about a year.) My app is up and running, but on looking through the development.log I noticed that Rails is making a lot of identical SELECT queries while handling a single request. These are just the simple
2006 Mar 13
4
Find and eager loading questions
Hi all, I want to see if I''m not missing something with associations and eager loading. (I''m currently using Locomotive on OS X and SQLite3.) I have two simple tables/models, set up properly: teams has_many :matches and matches belongs_to :teams. Matches has a match number and a team_id field (along with several other fields) and teams has a team_number field (again, along with
2005 Mar 04
17
active record logs format
Hi, I think this has already been asked on the list, but I can''t seem to be able to find it again: currently, active record does some weird thing with its sql logs i.e.: [4;33mSQL (0.000000) [1;37mPRAGMA table_info(map_locations) how do I remove the "[4;35m" thx Jean
2006 Mar 30
2
Functional test confusion
I have been reading about testing in RoR for what seems like hours now in search of the answer to what is probably a simple problem. Where is the best place to test the second action explained below? I have a controller (NetworkingController) with a method (create_network_segment) that makes use of two models (NetworkSegment and NetworkIpaddress). This particular method does two actions: 1.
2013 Feb 26
1
[LLVMdev] Cross compile LLVM using gcc (powerpc and x86)
Hi there, I hope this is the right list. I have been trying to cross compile the LLVM 3.2 for our x86 target by using i586 cross compiler provided by Oselas toolchain (http://www.pengutronix.de/oselas/toolchain/index_de.html). I have cross-compiled multitudes of 3rd party projects before and usually I can apply similar methods to compile the most of them. I have however not been able to figure
2010 Aug 27
2
phpMyAdmin can't connect to remote server
Hi All, I have had a thread about this going on the phpMyAdmin list for a little while. Nobody there has been able to shed any light on my problem. It seems that with phpMyAdmin I can not connect to remote servers. Though it also seems that apache, php and mysqli all work fine outside of phpMyAdmin. Below I have detailed my trouble shooting. This only seems to be an issue for me with CentOS 5 so
2007 Apr 17
3
Extracting approximate Wald test (Chisq) from coxph(..frailty)
Dear List, How do I extract the approximate Wald test for the frailty (in the following example 17.89 value)? What about the P-values, other Chisq, DF, se(coef) and se2? How can they be extracted? ######################################################> kfitm1 Call: coxph(formula = Surv(time, status) ~ age + sex + disease + frailty(id, dist = "gauss"), data = kidney)
2008 Aug 25
8
SQL Primer for R
Dear R wizards: I decided to take the advice in the R data import/export manual and want to learn how to work with SQL for large data sets. I am trying SQLite with the DBI and RSQLite database interfaces. Speed is nice. Alas, I am struggling to find a tutorial that is geared for the kind of standard operations that I would want in R. Simple things: * how to determine the number of rows in a
2006 May 09
2
Bulk Inserts. Fast way to insert 1000s records?
Hi, This code loops through my results and saves them : @results.each{|r| r.save} There are potentially thousands of results. This takes ages to complete. Is there a quicker way to do this? Any help is greately appreciated Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
1
file column inserts wrong file url field into database
Hello, ive set up file column like so Controller: def entry @entry = Entry.new(@params[:entry]) if @entry.save flash[:notice] = ''Product was successfully updated.'' else flash[:notice] = ''?'' end end Model: file_column :image View: <%= form_tag({:action=>''entry'', :id=> @entry
2006 Feb 26
3
Fast inserts?
There are cases when I have to create the same record 100 times. Is there a faster way than: 100.times{Obj.create(@params[:obj])} ? Bogdan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060226/75d1e099/attachment.html
2010 Jun 25
0
activerecord + ms sql.. rowguid field for merge replication breaking inserts
i got my app running with ms sql server as the database and everything worked fine. migrations, indexes, constraints, find, create, update, etc.. the app isn''t actually a web app, butwill be running isolated on severally diff machines that may not have consistent internet access.. part of the requirements was to setup replication so that eventually the separate instances would
2017 Aug 01
2
X86PadShortFunction.cpp inserts noops twice
Hi, while taking a look at X86PadShortFunction.cpp I found that /// addPadding - Add the given number of NOOP instructions to the function /// just prior to the return at MBBI void PadShortFunc::addPadding(MachineBasicBlock *MBB, MachineBasicBlock::iterator &MBBI, unsigned int NOOPsToAdd) { DebugLoc DL = MBBI->getDebugLoc();