Displaying 20 results from an estimated 10000 matches similar to: "Optional parameter in nested routes"
2006 Mar 31
10
ruby help / if (cond or cond)
Why this code doesn''t work as expected? It raises exceptions everytime.
Tried with || operator, too.
validates_each :x, :y do |record, attr|
record.errors.add (attr, ''between 1 and 100'') if (attr.to_i>100 or
attr.to_i<0)
end
--
They say money can''t buy happiness? Look at the smile on my face... ear to ear, baby!
2008 Sep 25
2
[libshout] Add mime/content-type parameter
On 9/24/08, Romain Beauxis <toots at rastageeks.org> wrote:
> First patch is 100% backward compatible, and only documents the new
> audio/ogg and video/ogg mime types.
"Documents" doesn't sound good. A quick look at the patch seems to
imply that libshout doesn't act on those two.
> Second patch is not backward compatible and sets "audio/ogg" if you
2019 Mar 28
0
Re: nbdkit design: varying the rate limit parameter
On 3/26/19 11:13 AM, Richard W.M. Jones wrote:
> Hi Eric,
>
> We may have our first user (Tomas, CC'd) of the rate filter to limit
> NBD connections. As you recall it lets you do commands like:
>
> nbdkit --filter=rate memory size=64G rate=10M
>
> to limit network bandwidth to 10 Mbps. However a twist is that he
> needs to vary the parameter while nbdkit is
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits
a post, he has a drop-down list of categories. I want to put a "Add
category" link next to the list of categories.
This is already inside a form, so a "link_to_remote" that creates a
small AJAX form inside the "submit post" form will not work because that
will mean to embed a form in another
2012 Feb 07
6
nested route not receiving :id parameter within controller spec
I''ve got a share method in my controller, and I have the following spec:
describe PostsController do
describe "#share" do
it "doesn''t blow up" do
post :share, :id => @post.id
end
# ... etc
And... It blows up!
Failures:
1) PostsController#share shares
Failure/Error: post :share
2009 Mar 23
2
dput(as.list(function...)...) bug
Tested in R 2.8.1 Windows
> ff <- formals(function(x)1)
> ff1 <- as.list(function(x)1)[1]
# ff1 acts the same as ff in the examples below, but is a list rather
than a pairlist
> dput( ff , control=c("warnIncomplete"))
list(x = )
This string is not parsable, but dput does not give a warning as specified.
> dput( ff ,
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own
db and app directory. I have a rake task which creates all necessary
minimum data to run their website: default rights and roles, a
superadmin user, a "us_states" table already populated, some local
depots and terminals (it''s a logistics app).
I don''t have any cucumber scenarios for it and
2005 Apr 22
2
[LLVMdev] Optional Target Builds
On Fri, 2005-04-22 at 09:52 -0600, Al Stone wrote:
> On Fri, 2005-04-22 at 10:18 -0500, Chris Lattner wrote:
> > Would passing one option, "--enable-arch=host", be ok?
>
> If what you mean is that "--enable-arch=host" would build only the
> host target, that could work. "--enable-arch=host-only" or something
> _might_ be clearer. So let me
2011 Aug 25
0
what's the impact if register sessions for the guest user
Hello all,
I set up a samba server(3.4.13) that guest has access to it. When I
run command ?net status shares parseable? on the server, it shows results
like this:
test\17358\\\pc-vincent\\Thu Aug 25 15:00:49 2011
And there?s no ip address for the client. I googled the reason and hacked
the samba source code, I found this comments in function session_claim() of
file
2008 Feb 11
1
DO NOT REPLY [Bug 5256] New: make -i format more consistent [*deleting]
https://bugzilla.samba.org/show_bug.cgi?id=5256
Summary: make -i format more consistent [*deleting]
Product: rsync
Version: 3.0.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: 14709c93@mailinator.com
2016 Sep 21
1
[PATCH] v2v: Support <listen type='socket'> and <listen type='none'> (RHBZ#1378022).
Since libvirt 2.0.0, these two new <listen/> types have been
supported: https://libvirt.org/formatdomain.html#elementsGraphics
This change just copies that configuration over from the source to the
destination if the destination is also libvirt.
Since we previously used 'LNone' to mean "no parseable <listen/>
element" I also had to change previous uses of
2005 Apr 22
0
[LLVMdev] Optional Target Builds
On Fri, 2005-04-22 at 10:18 -0500, Chris Lattner wrote:
> On Fri, 22 Apr 2005, Al Stone wrote:
> >> Actually, the options have to be expressed as "enable-something" so
> >> I've opted for "--enable-target-this" to enable just the $host target.
> >> if you specify --disable-target-this (the default) then you get
> >> whatever platforms
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgrade I ran rake:update and renamed the class in test_helper
to ActiveSupport::TestCase. Also renamed
2006 Oct 16
1
Multiple 'routes' to extension in different contextes. How to influence search oder?
Hi all
I share my Asterisk Server with a few friends. It is connected to PSTN, and
various SIP Providers.
I offer Free Calls to my friends, but myself I would like to be able to make
calls to non free destinations via my PSTN Line.
Now I do this in my dialplan:
-----------------------
[myself]
; National Destinations
exten => _0z.,1,Dial(SIP/someisp/${EXTEN});
exten =>
2009 Oct 23
4
error: nested-routes with nested-model having foreign keys
Hi,
I have this Test, User and Project models where every test belongs_to
a project and project has_many tests.
Test also belongs_to User as ''owner''.
Then i followed railcast#139 to create nested route as -
map.resources :projects, :has_many => :tests
But somehow i get this error when url is ''http://127.0.0.1:3000/
projects/1/tests'' in
2017 Jun 02
2
[RFC][ThinLTO] llvm-dis ThinLTO summary dump format
On Fri, Jun 2, 2017 at 12:39 PM, Peter Collingbourne <peter at pcc.me.uk>
wrote:
> On Fri, Jun 2, 2017 at 12:29 PM, Teresa Johnson <tejohnson at google.com>
> wrote:
>
>> On Fri, Jun 2, 2017 at 12:18 PM, Peter Collingbourne via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>>> Why do we need a custom dumping format for the summary? Since
2008 May 15
1
Remove controller name from URL > nested routes
Hi..
There are my nested routes
map.resources :continent do |continent|
continent.resources :land do |land|
land.resources :destination
end
end
By example it generates this url
http://example/continent/azie/land/japan/destination/aomori
I want
http://example/continent/azie/japan/aomori
How can i realize this...?
Grtz...remco
--
Posted via
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my
products_controller:
require File.dirname(__FILE__) + ''/../test_helper''
require ''products_controller''
# Re-raise errors caught by the controller.
class ProductsController
def rescue_action(e)
raise e
end
end
class ProductsControllerTest < Test::Unit::TestCase
fixtures
2007 Aug 16
1
Nested REST resource routes without controller name
I am curious if the following URL pattern is appropriate to use with
REST and map.resources:
Let''s say I want to build a website with information about cars. I
decide that there will be a page to view/manage cars by model. The
route for this is easily created:
map.resources :cars
The URLs look great. But now I want to introduce the ability to
specify cars by year. I can do this by
2008 Nov 16
0
non-RESTful action or nested routes?
I''m creating a simple task management system to learn Rails. I have a
"task" which is part of a "project", as so:
/projects/5/tasks
for project with id 5''s tasks
My task has a concept of being started, completed and updated.
"Updating" maps to the existing RESTful routes provided by Rails.
Started and completing, however, do not (at least not