similar to: Dummy field in a model

Displaying 20 results from an estimated 1000 matches similar to: "Dummy field in a model"

2006 Aug 02
3
Active Record
I want to build a one page finance calculator in Rails. The form has several fields on it. When I press the calculate button it will return to the same page with the answer. If there is an error it will also return to the same page with the appropriate error messages. I want it to be able to 1. Carry over all the values on the form fields 2. Use the rails validation methods How can I acheive
2006 Jul 09
1
Can''t find where to put non-index methods for appController
I have a couple of methods that I would like to not be available to the world as actions in my ApplicationController, but need to be visible to the methods in my ApplicationController. This is a dumb question yes, and I know the answer is extermely simple. Can I stuff them in another class somewhere? If so, what rails directory do I put it in? Thanks, -Jon -- Posted via
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all, I''ve run into an interesting scenario that I think some of you might have some suggestions on. I am currently working on a RoR project and we are making full use of the migrations. We are also using a subversion repository for our source control. Now, the problem.... We are both making migrations and checking them into SVN. So, if in our checkout we have migrations up to 10 and
2006 Jul 18
5
Ruby on rails local groups, everyone?
Hi , Just discover a interesting way to connect ror developers locallly. http://www.citycita.org let groups of people who share same interests to plan events and meet offline in local communities around the world. The service is quite new but it seem to have an ROR Oslo community that use it - http://rubyonrails.citycita.org/22498/. Worth a look ! -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
3
ActiveRecord without database
The question is this. Can I use ActiveRecord without the presence of a database? I use only YAML file for my project and I would like use the power of ActiveRecord for my models. I have not tested and so I ask you if this is possible. Thanks so much. --Reis -- Posted via http://www.ruby-forum.com/.
2006 Jul 19
13
MySQL Replication as Load Balancing
Hello: We will be setting up MySQL replication for a load balanced environment, but we have to separate reads and writes. How can we modify rails to do so? Has anyone done this already? Thank you in advance! Dan -- Posted via http://www.ruby-forum.com/.
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi, in the past few months someone posted an entry on their blog about how to do validations in non-AR classes and I cant find it any more. Anyone have a link? Thanks, Trevor -- Trevor Squires http://somethinglearned.com
2003 Feb 03
1
Syslinux cannot load memtest 86
Hi there, I am using the latest version of both syslinux ( acutally isolinux ) and memtest86. I get the error "Cannot load a ramdisk with an old kernel image." the memtest is just called memtest ( renamed from .bin as I read that in the archives that was bad ) My isolinux.cfg is just label memtest kernel memtest I searched google with not much avail. Is this a known issue to you?
2006 Aug 02
3
Does Ruby / Rails have something similar to PHPs ''virtual''
Hi all Is there a rails / ruby function that is analagous to PHPs ''virtual'' function? "virtual() is an Apache-specific function which is similar to <!--#include virtual...--> in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache. Note that for a CGI script,
2007 Jul 24
4
Rspec on rails with out database?
Hi all, I am trying to use rspec_on_rails in a Rails app that doesn''t have a database. so far I have just been faking it out by dumping in a sqlite3 database just to make Rails happy. I was using for test::unit a rake task that eliminated the calls to database prep: # Added this .rake file to keep Rake happy without a database. # Remove once a database is in the picture.
2006 Jun 26
8
[Semi OT] BlindDown and a floated div
I am using the drop shadow technique described at http://www.1976design.com/blog/archive/2003/11/14/shadows/ to give several of my divs drop shadows. That part works fine. What doesn''t work so well is when I try to BlindDown a div in Firefox and it ends up ignoring the content below it and just overlapping it. In IE this problem does not occur. In Firefox the overlapping does
2020 Jun 22
2
Hardware ASan Generating Unknown Instruction
Thanks for the confirmation. From the assembly that was sent on the other branch of the thread: > .set .L.str, .L.str.hwasan-3458764513820540928 -3458764513820540928 = 0xd0 << 56 i.e. a "negative" tag. So this appears to be the issue exactly. Peter On Mon, Jun 22, 2020 at 1:55 PM Derrick McKee <derrick.mckee at gmail.com> wrote: > Using lld fixes this issue. >
2005 Jul 23
11
Validation without ActiveRecord
Hello, I followed the instructions at http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord But now I''m having trouble trying to create my form view. Here''s a brief rundown of what I''ve done: - Created a class called SearchRequest that extends ValidatingBase and saved it in a file called search_request.rb and put it in my models
2020 Jun 22
3
Hardware ASan Generating Unknown Instruction
I suspect that this is hitting the issue that I mentioned here: https://reviews.llvm.org/D65857#1621335 We may need to do what I suggested there and restrict global tag entropy on non-Android Linux to 7 bits. You can try working around this issue for now by using lld as the linker (-fuse-ld=lld). Peter On Mon, Jun 22, 2020 at 1:37 PM Mitch Phillips via llvm-dev < llvm-dev at
2020 Jun 09
2
Cross compile x64 to AArch64 issues
Hi, I am trying to cross compile release-10.x to AArch64 (target=aarch64-linux-gnu), and the directions listed at [1] are not completing the initial cmake step. I'm currently running Manjaro, with the aarch64-linux-gnu package (and associated binutils, headers, and glibc packages). My cmake command is cmake -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=`realpath install`
2004 May 23
5
PRI problem???
I have just finished installing a new asterisk box at my work. The box is quite hefty, dual Zeon 2.8s with SCSI drives and 2Gb of memory. I have a 4 port Digium T1 card for channel bank and PRI access. I activated a PRI from a local CLEC (DMS-500 based, National protocol). This PRI is on slot 2 of the card and is set as the primary timing source. It is ESF/B8ZS. All the software is latest
2005 Oct 05
2
Transient Model Attributes in ActiveRecord
Hi all! I''ve been using an instance of my model to do "query by example".. Basically I fill in a new instance of the model and then later interrogate it to generate my conditions for find( :all ).. Where things get ugly is that I just moved several properties into a joined table, but I''d like to keep the ability to set those attributes in the original model..
2006 Jun 23
3
Ajax errors in safari
I am implementing some AJAX features into a web forum, and one feature works fine in Firefox and in IE, but it is choking in Safari. Safari will send the request fine and the data will be stored in the DB, but it is not responding correctly to the RJS that is being sent back. Anybody notice issues with Safari parsing the javascript sent back to the browser? -- Timothy Johnson
2004 May 28
3
Disable blind xfer
My SIP users need to transmit the "#" key as part of data entry. Asterisk intercepts and initates a transfer function. I'm almost positive I've seen this discussed somewhere, but none of my searches are finding it. Anyone have a handy answer? Tim McKee -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef
2020 Jun 22
3
Hardware ASan Generating Unknown Instruction
Hi, I am trying to execute a simple hello world program compiled like so: path/to/compiled/clang -o test --target=aarch64-linux-gnu -march=armv8.5-a -fsanitize=hwaddress --sysroot=/usr/aarch64-linux-gnu/ -L/usr/lib/gcc/aarch64-linux-gnu/10.1.0/ -g test.c However, when I look at the disassembly, there is an unknown instruction listed at 0x2d51c: 000000000002d4c0 main: 2d4c0: ff c3 00 d1