Displaying 20 results from an estimated 20000 matches similar to: "Getting Rid of Accidental Controller"
2019 Feb 13
2
Accidental new top-level monorepo directory
https://reviews.llvm.org/rL353906 introduced (presumably accidentally) the "b" top-level directory to the monorepo. The files should be moved to their proper location, but I'm also wondering if there's any way to prevent accidental top-level additions like this.
Thanks,
Shoaib
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jan 16
3
routing to controller inside module
Hey,
am i to stupid to find the information about how to route to a
controller in a module? Maybe module support has gone!
The controller is under:
app/controllers/admin/my_controller.rb
The my_controller.rb file looks like this:
module Admin
class MyController
def index
render :text => ''Hello!''
end
end
end
How does a route to all controllers under module
2007 Apr 05
3
Extending assigns in controller specs?
Hello,
I am interested in enhancing assigns in controller specs to do
things like the following
assigns[:key1, :key2, :key3] #=> vals for keys
Is there away to "break open" this construction to overload the :[] operator?
Thanks.
-Chris
2019 Mar 17
1
Accidental samba_dnsupdate success after NT_STATUS_CONNECTION_REFUSED
Greetings,
The process to join a new samba 4.6 DC to an existing samba 4.1 DC
repeatedly caused:
samba_dnsupdate --verbose --all-names
to fail on the new DC with:
Failed to connect host x.x.x.x on port 49152 - NT_STATUS_CONNECTION_REFUSED
Noted: both samba versions are obsolete and will be updated post haste.
Regardless, samba_dnsupdate was accidentally invoked on the new DC while
the
2019 Apr 17
6
How to deal with accidental directory tree deletes, downstream?
Hello fellow downstream residents,
I see that r358546 accidentally deleted an entire subtree, which was
reverted in r358552. This of course caused a big merge conflict in
our local repo, and internally we've been debating tactics for dealing
with it, hopefully without losing our original history.
Has anyone else handled this in a way that they are happy with? We
found a StackOverflow
2007 Mar 26
2
Calling a controller action from script/console or runner
Is there a way to call or invoke a controller method from script/console
or script/runner? The reason is that I''d like to pre-cache some of the
actions on my controller.
The pseudo code below is what I''d like to be able to do:
class MyController < ApplicationController
caches_action :test
def test
puts ''Hi there''
end
end
script/console:
2013 Mar 03
2
Is there a way to prevent an accidental migration from newer version of app to older one?
Imagine a rails app that has two versions that developers need to support:
1.0 and 2.0. There are 2 database schemas: app-1, app-2.
After fixing a bunch of very important bugs in production (1.0), some
junior developer named Bob switches the branch to 2.0 to implement a few
features but somehow gets his app connected to the schema app-1 and does
rake db:migrate
As I understand, in that case
2010 May 01
3
How to schedule for a repeated task?
Dear All
I need to schedule for a repeated task on my CentOS server, as the
followings:
-) Telnet to a remote node
-) Issue a command
-) Capture the output in a log
-) Logout from Telnet
-) Wait for a prescribed time interval
-) Then redo , but append the subsequent output in just on file
Can you please let me know which options do we have to write such a task?
Thank you
-------------- next part
2007 Dec 05
4
render :update and controller private methods
Probably asked and answered, but...
Why are controller private methods inaccessible inside the block
passed to render :update ?
This does not work:
class MyController < ApplicationController
def some_action
render :update do |page|
page.replace_html ''an_element'', some_private_method
end
end
private
def some_private_method
return
2008 May 06
3
[LLVMdev] code generation order
One more question. I hope you're not getting tired of me already. Does
generating LLVM code have to proceed in any particular order?
Of course, if I am writing LLVM assembler by appending characters to the
end of a sequential file, I'd have to write everything in the order
prescribed by the assembler syntax.
But if I'm using the C interface to build an LLVM parse tree, does that
2009 Sep 15
2
precision multi-page printing
I am at a point where I will need to print checks in an application.
I guess the best way to describe this is that I am using pre-printed
checks and that I want to hit the prescribed areas with my text output.
Should I be doing something like PDF output like pdf-writer or other or
can I possibly do this with html and css?
My output will be check runs of many checks with 1 page per check.
Any
2006 May 21
6
Is there a way to call helper methods in a controller?
Hi,
Is there a way to call helper methods in a controller?
I want to do something like this in my controller
Class MyController < Action....
def my_method
string = link_to "some_url", :controller => "home", :action => "command"
end
end
link_to is an ActionView helper method and it seems that I couldn''t access
the method in the controller
2008 May 06
0
[LLVMdev] code generation order
On 2008-05-06, at 13:42, Hendrik Boom wrote:
> One more question. I hope you're not getting tired of me already.
> Does
> generating LLVM code have to proceed in any particular order?
>
> Of course, if I am writing LLVM assembler by appending characters to
> the
> end of a sequential file, I'd have to write everything in the order
> prescribed by the assembler
2020 Sep 04
2
Misleading documentation on FP to integer conversion instructions?
The LLVM IR reference manual states, for fptosi:
"The ‘fptosi’ instruction converts its floating-point
<http://llvm.org/docs/LangRef.html#t-floating> operand into the nearest
(rounding towards zero) signed integer value."
I interpreted this to mean that it rounds:
The nearest integer to 0.3 is 0.
The nearest integer to 0.9 is 1.
The nearest integer to 0.5 is either 0 or 1. And
2005 Dec 30
6
Suggestion for New User
I, like many people, am starting to learn Ruby because of Rails. I am
going through several tutorials and am understanding the concepts
without too much difficulty, but the one area I am having trouble with
is learning the new language.
I am not a trained programmer. Rather, I learned how to program out of
necessity and therefore lack some of the background that many of you
have.
I am
2006 Jan 25
12
DRY in Models
I am building an app right now that needs to grant access to three
levels of members right now - each will have their own table in the DB.
When creating the add_user action I am converting the password into a
hashed password through the model.
The way I am doing this right now, I will inevitably end up with
repeated code in three different models. Is there a way I can define
this code in
2019 Sep 13
2
DWARF-5 Supported languages Tags C++03, C++11,C++14
Hello Everyone,
I'm working on providing support for New Language Tags, prescribed in
DWARF-5.
DW_LANG_C_plus_plus_03
DW_LANG_C_plus_plus_11
DW_LANG_C_plus_plus_14
While, C++11 and C++14, is defined and can be emitted by Frontend.
"include/clang/Basci/LangStandard.h"
CPlusPlus = (1 << 5),
CPlusPlus11 = (1 << 6),
CPlusPlus14 = (1 << 7),
CPlusPlus17 = (1 <<
2003 Jul 30
2
accidental mke2fs
I know there is no straightforward way to recover deleted files on
an ext3 file system, but is there any way to recover from an
accidental mke2fs?
--
---------------------------------------------------------------
Paul Raines email: raines@nmr.mgh.harvard.edu
MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging
149 (2301) 13th Street tel:(617)-724-2369
2005 Jan 14
5
Remote Voicemail Retrieval...
Hello list,
I want to listen to voicemails on my * box from a phone that is not
local to my pbx. I.e., from my cellphone or my PSTN work line etc. I'm
aware that I can forward VM to email or use a web interface but that is
not always practical.
Other than doing an IVR type arrangement or a phone number dedicated to
VM access is there a way to do this? On my old POTS line I used to be
2015 Apr 02
3
Dovecot Oy merger with Open-Xchange AG
On 4/1/15, Reindl Harald <h.reindl at thelounge.net> wrote:
>
>
> Am 01.04.2015 um 14:33 schrieb Bernd Petrovitsch:
>> On Mit, 2015-04-01 at 13:07 +0200, Reindl Harald wrote:
>>> Am 01.04.2015 um 13:04 schrieb Bernd Petrovitsch:
>>>> IMHO the larger the corporation is, the less are the chances for
>>>> *long-term* benefits of the OSS/free