Displaying 20 results from an estimated 6000 matches similar to: "n-levels of nested resources in REST?"
2007 Dec 10
11
map.namespace, rake routes yields no POST URLs
routes.rb
map.namespace :admin do |admin|
admin.resources :cupcakes
end
rake routes
cupcakes GET /cupcakes
formatted_cupcakes GET /cupcakes.:format
POST /cupcakes
POST /cupcakes.:format
That said, what the heck goes here:
form_for(:cupcake, @cupcake, xxx_url) # ???
Calling create_admin_cupcake_url yields...
undefined local variable
2006 Jan 21
7
n-way joins
Hi,
I''m somewhat of a Rails newbie and am trying to understand how to
formulate n-way (3 or 4 way) joins in Rails (where the join tables
contain extra data as well.)
Let me give you my basic entities:
foos
id - pk
name - unique
bars
id - pk
name - unique
bazs
id - pk
name - unique
frozs
id - pk
name - unique
then i have two separate join tables:
foos_bars_bazs - 3 way join
2007 Sep 18
10
Routes
hi all,
I want to move some routing tasks out of the router and into the
controller. The goal is to make Merb feel less like mod_rewrite and
give the user more control at the controller. The new Router is
simple: it takes the path_info (not the whole request) then outputs a
controller class and some parameters from the path matching. The rest
of the routing would be done at the controller level.
2006 Jul 03
13
Eager loading ActiveRecord objects
I have a complex graph of ActiveRecord entities that I want to load with
one big honkin'' join query to avoid ripple loading. It''s for a report.
However :include doesn''t get me all the way there because I want to load
parents of parents (or children of children). I don''t mind doing the
SQL by hand but I''m not quite sure what to do to get the result
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello
At the start of October, Duane Johnson announced the Query mixin plugin on
this list. The code was attached to the announcement email. Unfortunately,
I''ve not been able to locate the attached code. Goggle has not helped me
this time. Could somebody forward it to me?
Thanks in advance
Harvey
This e-mail has been scanned for all viruses by MessageLabs.
2009 Jan 07
5
What steps to take
Hi list
I'm attempting to list windows shared printers in Unix. That's really all
that I need and I can't install Samba on the machine I need to list the
shared printers from. I started analyzing the smbclient code hoping to
extract the necessary info but as you all know it's a daunting task.
Certainly for a C novice.
Which is why I want to ask if there is anyone out there who
2006 May 02
2
Bug: invalid nesting of inline markup across link labels
Hi John,
there?s a bug in Markdown.pl:
[foo*bar](#) [baz*quux](#)
This expands to the following:
<p><a href="#">foo<em>bar</a> <a href="#">baz</em>quux</a></p>
Those `*` should either be disregarded or the tags should nest
correctly:
1. <p><a href="#">foo*bar</a> <a
2010 Sep 22
5
OpenVPN tunnel and one-way audio - Do I still need a SIP proxy?
Hi Everyone,
I have setup an OpenVPN tunnel between Server A (running Asterisk) and
Server B suppling it's SIP Phones with DHCP pool of IPs.
So, the tunnel is established nicely and everyone can ping others. "sip show
peers" shows the local subnet of the SIP Phones registered (192.168.100.0/24
).
But there is the old bad one-way audio. Calls also drop after few seconds.
In the SIP
2008 Sep 08
13
list corner case
I'm curious how people think the following *should* be interpreted:
- one
2. two
http://babelmark.bobtfish.net/?markdown=-++one%0D%0A2.+two%0D%0A%0D%0A
As you can see, implementations split into three groups here:
(a) treat as an unordered list
Markdown.pl, Python markdown, MultiMarkdown, BlueCloth, MarkdownJ,
Showdown
(b) treat as an unordered list with an ordered
2003 Oct 17
2
nlm, hessian, and derivatives in obj function?
I've been working on a new package and I have a few questions regarding the
behaviour of the nlm function. I've been (for better or worse) using the nlm
function to fit a linear model without suppling the hessian or gradient
attributes in the objective function. I'm curious as to why the nlm requires
31 iterations (for the linear model), and then it doesn't work when I try to
add
2018 Mar 16
3
cat(fill=N)
Hi all,
I expect I'm getting something wrong, but
cat("foo bar baz foo bar baz foo bar baz", fill = 10)
should be broken into lines of width 10, whereas I get:
> cat("foo bar baz foo bar baz foo bar baz", fill = 10)
foo bar baz foo bar baz foo bar baz
This is on R 3.4.3, but I don't see mentions of it fixed in 3.4.4 or
r-devel NEWS.
Cheers,
David
2014 Jun 02
3
[LLVMdev] -fvisibility=hidden, and typeinfo, and type-erasure
[Was initially posted on cfe-users, sorry.]
Hi,
I'm sorry my message is quite long, the TL;DR version is "g++ and clang++ seem to have different opinions on how RTTI, templates, and ELF visibility should interact".
I can't tell whether this is a bug or not: I have found no relevant documentation that could help me decide whether this behavior is meant, or not. All I can say
2006 Feb 28
1
Typos in writeLines.Rd, readLines.Rd, and data.matrix.Rd
Hello,
The diffs below are based on revision 37445 and show
some typo corrections for writeLines.Rd, readLines.Rd,
and data.matrix.Rd that I'd like to bring to the list's
attention.
Sincerely,
Stephen Weigand
Rochester, Minnesota, USA
--- ./src/library/base/man/writeLines.Rd Sun Feb 26 13:46:06 2006
+++ /tmp/writeLines.Rd Sun Feb 26 20:53:44 2006
@@ -14,8 +14,8 @@
each
2007 May 23
2
Markdown generates invalid html for a list immediately followed by a quote
Howdy,
[Please preserve the CC to 424919-forwarded at bugs.debian.org on any
replies.]
The following bug in Markdown was reported to the Debian bug tracking
system. In short, running both the released version of Markdown and
the latest beta on
* foo
> bar
> baz
produces invalid HTML.
----- Forwarded message from Joey Hess <joeyh at debian.org> -----
From: Joey Hess <joeyh
2007 Dec 24
2
Build a cmdline for exec from optional parameters
How can I do this?:
foo { name:
$bar => "frob"
}
define foo( $bar = false, $baz = false ) {
if #$bar and $baz both defined
$cmd = "frobnicate --bar=$bar --baz=$baz ${name}"
else if #$bar defined
$cmd = "frobnicate --bar=$bar ${name}"
else if #$baz defined
$cmd = "frobnicate --baz=$baz ${name}"
else
2008 Jun 04
3
how to automatically create objects with names from a string list?
Suppose I have a string of objects names:
name <- c("foo", "bar", "baz")
and I would like to use a for loop to automatically create three
objects called "foo", "bar" and "baz" accordingly. Then how can this
be done" (so that in the workspace, foo = 1, bar = 2 and baz=3)
for (i in name) {
.....
}
Thanks!
Mark
2006 Feb 05
2
a generic 'attach'?
Is there any reason why 'attach' is not generic in R?
I notice that it is in another system, for example, and I can see some
applications if it were so in R.
Bill Venables.
Bill Venables,
CMIS, CSIRO Laboratories,
PO Box 120, Cleveland, Qld. 4163
AUSTRALIA
2009 Jul 26
1
Need help of exclusion options in rsync-3.0.6
Hi,
I have a situation where I want to delete some of my excluded patterns but
still want to preserve some other. For example consider below source and
destination directory hierarchy.
Source Dest
---------- ---------
/foo/bar/ /foo/bar/
| -> baz | -> baz
| -> xyz | -> xyz
| ->
2007 Apr 03
2
has_many :through associated object ids assignment error
Hi,
I have the following situation:
class Article < ActiveRecord::Base
has_many :readings
has_many :users, :through => :readings
end
class Reading < ActiveRecord::Base
belongs_to :article
belongs_to :user
end
Now what I''m trying to do is:
article = Article.new
article.save!
# user ids 1,2,3 exist in database, as does the article
article.user_ids = [ 1, 2, 3 ]
But I
2017 Jan 08
2
IRC question about ?foo etc
14:50 < cbosdonnat> pino|work, do you know how I could get ?tar passed from one function to the other in the checksum code?
14:51 < pino|work> cbosdonnat: pass it as it is, ie ?foo
14:52 < cbosdonnat> pino|work, indeed, works better... I didn't know I could use the ? in the calling function and I used the ~ instead
14:53 < pino|work> ? is handled like an option type