Displaying 20 results from an estimated 10000 matches similar to: "8th method for scaffold_resource"
2006 Nov 22
1
Peepcode REST podcast. ..didn't anybody get it ?
And if so, I''m going a bit bonkers here and need to watch it again, but
if I remember correctly, scaffold_resource generator was used, but for
nested resources
the show and index were removed from the controller ?
Is this correct as far as what happened in the demonstration and if so is it
correct as far as rest goes ?
TIA
Stuart
--
http://en.wikipedia.org/wiki/Dark_ambient
2007 Apr 24
1
problem POSTing with curl and REST using scaffold_resource
I issued the following curl command to post to the database using
REST:
curl -i -X POST -d "<heartrate><heartRate>102</
heartRate><sessionID>1002</sessionID><timeStamp>15068</timeStamp></
heartrate>" http://localhost:3000/heartrates
I have tested the GET (with curl also) and it works fine!
curl http://localhost:3000/heartrates/45
2007 May 22
5
rails edge
hi,
first time trying rspec, and rails edge. Are there any known issues
running rspec with rails edge?
for one, apparently script/generate scaffold_resource has been
renamed just "resource". Do I just search/replace "scaffold_resource"
with "resource" in file rspec_resource_generator.rb ? Somethings
still missing.
before i get "Couldn''t find
2006 Nov 03
10
[PLUGIN] rspec_resource_generator - RESTful scaffold generator with RSpec specifications
rspec_resource_generator
========================
By Pat Maddox
Use this generator to generate RESTful scaffolding with RSpec specifications.
Syntax is exactly the same as the scaffold_resource generator:
./script/generate rspec_resource ModelName [field:type field:type]
When you run this generator, it will create a migration, model, and
model spec file. In addition, it gives you a RESTful
2007 Dec 06
3
number_to_currency
I am using the number to currency function because i live in the uk and
the company want me to only show values of the pound of course.I have
created all my application using ruby script/generate
scaffold_resource.... I have come across with a problem... this code is
in my applcation:
def number_to_currency(number, options = {})
options = options.stringify_keys
precision, unit, separator,
2009 Jul 15
3
[LLVMdev] please stabilize the trunk
We've had a lot of churn in all the trunks (llvm, llvm-gcc, clang)
recently, and the testing buildbots have been failing repeatedly.
I spoke with Chris this AM, and he suggested we have a "stabilization
day." Please avoid large, destabilizing changes for about twenty-four
hours. We would like for the testing bots to begin working again.
Thanks,
stuart
2007 Jul 26
2
rspec_resource error
First of all hi, I''m new to the list, and rather new to rspec as will
probably show in myquestion.
I have tried installing rspec and rspec_on_rails as plugs both using
"script/install" and
"piston import" commands using the "current release install instructions"
here [1]. However,
there doesn''t seem to be any mention of the rspec_resource
2006 Oct 27
1
scaffold_resource should create specs instead of tests
Is this in the works?
2009 Jul 15
0
[LLVMdev] please stabilize the trunk
On Jul 15, 2009, at 11:52 AMPDT, Stuart Hastings wrote:
> We've had a lot of churn in all the trunks (llvm, llvm-gcc, clang)
> recently, and the testing buildbots have been failing repeatedly.
>
> I spoke with Chris this AM, and he suggested we have a "stabilization
> day." Please avoid large, destabilizing changes for about twenty-four
> hours. We would like for
2016 Dec 16
2
Replication with Multiple Sites in a Hub and Spoke Topology
Samba 4.5.1 (started with this version as well)
I started with 3 domain controllers, DC1 and DC2 at the hub, and another,
DC3 as a spoke. Everything was running smoothly with this config. No
problems with 'samba-tool drs showrepl'. As soon as I started adding more
'spoke' domain controllers I'm getting timeouts in the 'samba-tool drs
showrepl' command. I believe
2007 Aug 01
2
map.resources with habtm
Hi
I''m trying to use restful resources with recipes and ingredients
I''ve set up the models using scaffold_resource.
A recipe can have many ingredients
and an ingredient can be in many recipes.
I''ve set the relationships up using a through.
I now want to display a recipe with a list of ingredients but I''m unsure
how to proceed.
Should I use nested resources and
2017 Aug 19
2
How to set tinc not to forward Subnet learned from other nodes?
Hi,
Reason behind that is we have some use cases wouldn’t like to make some nodes to become the transit node, but there’re some other nodes in the topology act as the transit nodes.
So if the tinc node forward subnet update it learning from one side to the other side, then it possible to become transit node if one side only have route to go through it.
That node I would call it “spoke-only”
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is.
Anyway if I do just session[user] I get back the user id (the id from
the user table)
which is good.
However this code does not work.
<% a = session[:user] %>
<% uname = User.find(:first, :conditions => id = a) %>
<%= @uname %>
TIA
Stuart
2007 Jan 10
0
nested resources with nested controllers
Is there a way to create resources that work with nested controllers?
For example:
./script/generate scaffold_resource project name:string
mkdir app/views/layouts/project # so the command below doesn''t
complain
./script/generate scaffold_resource project::user name:string
# routes.rb
map.resources :projects do |project|
project.resources :users
end
After creating a project
2016 Dec 19
1
Replication with Multiple Sites in a Hub and Spoke Topology
On Sun, Dec 18, 2016 at 5:20 PM, Garming Sam <garming at catalyst.net.nz>
wrote:
> Hi,
>
> It seems unlikely that the KCC is the cause of these issues. The KCC is
> only responsible for telling who to connect (and when) and doesn't
> actually affect any underlying network connectivity. Connectivity
> between the spokes should not be required and the communication
2015 Oct 18
2
Feasibility of Tinc vpn with my current setup.
Hi all,
I am new to Tinc VPN and really would like to make full benefit of this
implementation if possible. I would like to know whether I will be able to
use Tinc to its full potential. My current setup is as follows,
IPfire router/firewall(openvpn client) --->ISP(Internet)--->Amazon
VPS(openvpn server).
The ipfire router is behind a CARRIER-GRADE NAT, I am able to reach the
network
2007 Feb 01
12
RESTful Rails and other musings
Hi all,
I would first like to introduce myself to the Ruby on Rails (RoR)
community and to say that I hope to begin to build some relationships
with other RoR developers.
I''m a long time Java programmer (5+ years). Java was my first
experience with Object Oriented Programming (OOP). Before Java I
developed using many other languages including C, Pascal, Fortran,
BASIC, Visual Basic,
2015 Oct 01
2
[cfe-dev] Orc Windows C++
Moving to the LLVM Dev list & cc'ing Lang.
On Thu, Oct 1, 2015 at 4:23 AM, Joshua Gerrard via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hello folks,
>
> I’m developing an application that uses Orc JIT for C++, which works
> swimmingly on Mac OS X. However, the Windows version has been a battle and
> a half, and it’s now at the point where I need some assistance
2014 Dec 03
0
vesamenu back to text before booting
On 12/03/2014 08:43 AM, Thorsten Glaser wrote:
> On Wed, 3 Dec 2014, H. Peter Anvin wrote:
>
>> Ah, depends on the image type. We spoke reset for an NBP though.
>
> ?!
>
Should, not spoke.
-hpa
2006 Jul 20
2
GRE over IPsec Cisco<-> Linux
Hello Lartc Mailing List:
Been working on something the last week and a half and ALMOST have it
working.., just need a few pointers from the wizards on this mailing list to
nail it.
Ok, my setup is a hub and spoke arrangement, hub is Cisco 2821 with IOS 12.4.
Spokes are ruggencom RX1000 routers, Debian based with the following versions
installed:
rx1000test:~# uname -a
Linux rx1000test