Displaying 20 results from an estimated 5000 matches similar to: "Can''t find where to put non-index methods for appController"
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 Jun 25
3
Dummy field in a model
I want to have a field in model, which I''m not storing in a database.
And I want to do something like the following in the model code :
validates_format_of :field_NOT_in_db, :with => session[:field]
How can I do it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
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 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/.
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,
2006 Jan 24
2
A way to use link_to_remote in appcontroller?
Hi, in my ApplicationController, I am creating a bunch of text which is
going to be displayed in my view. However, I would like to use
link_to_remote in whats going to be displayed. Any suggestions on how to
do this?
--
Posted via http://www.ruby-forum.com/.
2010 Aug 08
2
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
Hello,
I was trying to interface a custom backend instruction scheduler with llvm
code when I realize something terrible. The scheduling code builds a graph
made up of SUnit * nodes (see ScheduleDAG*.{cpp,h}). These SUnits nodes are
allocated via a std::vector< SUnit >.
This isn't a problem as long as the pointers are taken after the vector is
fully filled and the vector never changes
2011 Jan 03
8
Heroku, needs constant AppController updates?
Dear All,
Fairly new to rails and Heroku, so could be doing something wacky - do
let me know if you think my code practice is off, even if unrelated to
this error, I''d like to learn!
I''m using Rails 3.0.0, ruby 1.8.7, and ''sqlite3-ruby'', ''1.2.5'', :require
=> ''sqlite3''.
I''ve got an application that goes off and
2010 Aug 08
2
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
Oh yes you're right, I missed that :) But the point still hold.
Amaury Pouly
2010/8/8 Eugene Toder <eltoder at gmail.com>
> > Not only this code does not compile with NDEBUG set
>
> I may be missing something, but why does it not compile with -DNDEBUG?
> assert() macro expands to noop when NDEBUG is set.
>
> Eugene
>
> On Sun, Aug 8, 2010 at 2:19 PM, Amaury
2010 Aug 08
0
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
> Not only this code does not compile with NDEBUG set
I may be missing something, but why does it not compile with -DNDEBUG?
assert() macro expands to noop when NDEBUG is set.
Eugene
On Sun, Aug 8, 2010 at 2:19 PM, Amaury Pouly <amaury.pouly at gmail.com> wrote:
> Hello,
> I was trying to interface a custom backend instruction scheduler with llvm
> code when I realize
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.
>
2010 Aug 08
0
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
Right, later in the same file we have:
// Reserve entries in the vector for each of the SUnits we are creating. This
// ensure that reallocation of the vector won't happen, so SUnit*'s won't get
// invalidated.
// FIXME: Multiply by 2 because we may clone nodes during scheduling.
// This is a temporary workaround.
SUnits.reserve(NumNodes * 2);
So for some reason *2 is
2005 Apr 16
2
Authorization
Hi,
Maybe I ask again for something what is wasn''t able to find anything.
Is there simple way how to process authorizations?
My imagine is that some action for controllers are allowed only to few
users. E. g. Everybody can look category list, but only registred user can
edit or add.
In best way, when user is signup, rails will remember his rights like:
adding_category = false
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
2007 Sep 27
5
Which Asterisk version to use?
Hi,
I'm a complete newbie to Asterisk and have been reading through
documentation and sites for the last couple of hours trying to understand
what to do to start my learning curve with Asterisk, and am very confused.
For starters, what is the difference btwn the 1.2 and 1.4 branches of
Asterisk? I can't seem to find a document that describes the changes.
Secondly, what is the best
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
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