Displaying 20 results from an estimated 30000 matches similar to: "how do I get rid of this routing warning?"
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi,
A store front a customer wants to GET /product/5/show. But for the
application this is really GET /cart_item/new/5 or even better
/cart_item/new?cart_item[product_id]=5
When the customer clicks add_to_cart they POST /product/5/show so that
the url doesn''t confuse the user when any validation errors occur. But
for the applicaiton this should be POST
2009 Dec 07
1
routing requirements quick question
Hi everyone, first e-mail here :)
I have the following in my routes.rb file.
map.connect ''posts/index/:page'',
:controller => ''posts'',
:action => ''index'',
:requirements => {:page => /\d+/ },
:page => nil
end
Does :requirements => {:page => /\d+/ } mean that if the :page
2007 Nov 05
6
Strange wildcard problem
Hi,
Apologies for reposting this for those who read this via ruby-forum,
but it didn''t make it to the list before, and the list seems more
active...
I''m using ferret (via acts_as_ferret) in a somewhat unorthodox
manner and am having a strange wildcard problem. Before anyone wonders
why we''re doing things this way, the answer is basically that it lets
us
2006 Feb 08
1
routing: requiring requirements for non-existent params?
With this route:
map.connect ''items/:subject/:id'',
:controller=>''items'', :action=>''show_redirect'',
:requirements => {:subject => /.+/, :id => /\d+/}
Is it possible to have it match these URLs:
items/biology/123
items/chemistry/234
items/math/456
But not these:
items/new
items/list
...
The problem is that :requirements only
2006 Jul 15
4
routing requirements broken in Rails 1.1.4?
Hi,
I have the following routes
map.connect '':controller/:id/:action'', :id=>/4/, :defaults=>{ :action=>''show''}
map.connect '':controller/:action'', :defaults=>{:action=>''index''}
and when I point my browser to "localhost:3000/departments" I see an
error because the show action cannot find a
2014 Nov 22
1
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
Hello.
Use <inttypes.h> PRIx64 instead of llx to get rid of gcc warning
format ?%llx? expects type ?long long unsigned int?, but argument 2 has type ?uint64_t?
--
MartinS
diff --git a/com32/gpllib/acpi/xsdt.c b/com32/gpllib/acpi/xsdt.c
index 208abc6..228b6c3 100644
--- a/com32/gpllib/acpi/xsdt.c
+++ b/com32/gpllib/acpi/xsdt.c
@@ -63,7 +63,7 @@ int parse_xsdt(s_acpi * acpi)
/*
2017 Dec 14
0
Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set <domU> <val> triggers domU kernel WARNING, then domU becomes unresponsive
On Mon, Dec 11, 2017 at 4:52 PM, Adi Pircalabu <adi at ddns.com.au> wrote:
> Has anyone seen this recently? I couldn't replicate it on:
> - CentOS 6 running kernel-2.6.32-696.16.1.el6.x86_64,
> kernel-lt-4.4.105-1.el6.elrepo.x86_64
> - CentOS 7 running 4.9.67-1.el7.centos.x86_64
>
> But I can replicate it consistently running "xl -v vcpu-set <domU>
2013 May 17
0
[LLVMdev] How to get rid of "xxx not a recognized feature for this target" warning?
Hello LLVMer,
I am currently developing a backend targeting a stack-based VM,
When compiling with targeting to the VM, I got a bunch of outputs below.
Where in code do I miss to add to get rid of these warnings?
'-sse4a' is not a recognized feature for this target (ignoring feature)
'-avx2' is not a recognized feature for this target (ignoring feature)
'-xop' is not a
2003 Jun 02
1
Does anyone know how to get rid of this warning message?
Hi,
I searched the archives about this, but didn't find any references.
When I make an outbound SIP call, the call completes and everything is
fine, but in the Asterisk console, I keep getting a huge stream of
warning messages:
"WARNING[1200876848]: File dsp.c, Line 1107 (ast_dsp_process): Unable
to detect process 2 frames"
I thought I saw this in a post earlier, but I
2005 Nov 13
0
Routing Fixnum
If I have the following route defined:
map.connect ''/foo/bar/:baz'',
:requirements => {:baz => /^\d+$/}
then if someone asks for /foo/bar/3 I noticed that :baz == "3" instead
of :baz == 3. I.E. it is a string not a number. (At least it does this
in the functional testing of the routing). This seems reasonable because
I have not told it to expect a number but
2006 May 24
0
Routing multiple sub-categories
Hi all,
Does anyone have a neat way to route n-number of sub-categories:
/categories/category/sub-category/sub-sub-category/
I have the application successfully using a single level of categories,
but it needs to use sub-categories now with the above format.
It''d only really need to grab the last path entry and pass that onto the
categories controller. These paths would only have
2008 Aug 23
1
Route segment ":controller" cannot be optional because it precedes a required segment.
Hi,
With this route...
map.namespace :admin do |admin|
admin.sort ''/:controller/sort/:sort_by/:sort_dir'', :action => ''sort''
end
...I get this message...
Route segment ":controller" cannot be optional because it precedes a
required segment. This segment will be required.
The route works as expected, but the warning is worrying. Any ideas?
2017 Dec 19
0
Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set <domU> <val> triggers domU kernel WARNING, then domU becomes unresponsive
On 12/19/2017 09:12 AM, Johnny Hughes wrote:
> There are a couple of xen updates in the 4.9.66 and 4.9.68 kernels:
>
> https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.66
> https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.68
>
> Let me build a newer Dom0 kernel and see if that helps.
>
> Thanks,
> Johnny Hughes
>
>
OK .. I have built and
2017 Dec 14
1
Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set <domU> <val> triggers domU kernel WARNING, then domU becomes unresponsive
On 15-12-2017 4:10, Akemi Yagi wrote:
> On Mon, Dec 11, 2017 at 4:52 PM, Adi Pircalabu <adi at ddns.com.au>
> wrote:
>
>> Has anyone seen this recently? I couldn't replicate it on:
>> - CentOS 6 running kernel-2.6.32-696.16.1.el6.x86_64,
>> kernel-lt-4.4.105-1.el6.elrepo.x86_64
>> - CentOS 7 running 4.9.67-1.el7.centos.x86_64
>>
>> But I can
2005 Nov 11
0
Possible to simplify these routes?
In my routes.rb I have:
map.connect
''items/category/:category_id/order/:order/page/:page'',
:controller=>''item'',
:action=>''list'',
:requirements => {:category_id => /\d+/}
map.connect
''items/category/:category_id/order/:order'',
:controller=>''item'',
2014 Nov 28
2
[PATCH] lib: Add COMPILE_REGEXP macro to hide regexp constructors/destructors.
[NOTE: this is not the complete patch. Once ACKed, I will make the
same mechanical change to all the other places in the library that use
this pattern.]
---
src/guestfs-internal.h | 24 ++++++++
src/inspect-fs-unix.c | 164 +++++++++++--------------------------------------
2 files changed, 59 insertions(+), 129 deletions(-)
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index
2010 May 28
1
How to get values out of a string using regular expressions?
Dear all,
I have a vector of filenames which begins like this :
X <- c("OrthoP1_DNA_str.aln", "OrthoP10_DNA_str.aln",
"OrthoP100_DNA_str.aln",
"OrthoP101_DNA_str.aln", "OrthoP102_DNA_str.aln", "OrthoP103_DNA_str.aln",
"OrthoP104_DNA_str.aln", "OrthoP105_DNA_str.aln", "OrthoP106_DNA_str.aln",
2017 Dec 19
1
Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set <domU> <val> triggers domU kernel WARNING, then domU becomes unresponsive
There are a couple of xen updates in the 4.9.66 and 4.9.68 kernels:
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.66
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.68
Let me build a newer Dom0 kernel and see if that helps.
Thanks,
Johnny Hughes
On 12/11/2017 06:52 PM, Adi Pircalabu wrote:
> Has anyone seen this recently? I couldn't replicate it on:
> -
2006 Nov 17
6
RESTful routes and resulting urls
if I have the following in my routes.rb:
map.resources :product_categories
it provides urls such as:
/product_categories
/product_categories/1
/product_categories/1;edit
etc.
and uses the ProductCategories controller.
how can I keep the same controller (and model) but set up the resources
so that I can have any abitrary url point to the existing controller,
much like specifying the controller
2009 Jan 29
0
How to get rid of an ActiveRecord warning "already initialized constant"
I need to get a proxy class for a specific AR validation
I reuse a piece of code (from Globalize), where it''s set as a
constant :
module Globalize
module Model
module ActiveRecord
class << self
def create_proxy_class(klass)
Object.const_set "#{klass.name}Translation", Class.new
(::ActiveRecord::Base){..}
..
end
so in my validation module,