Displaying 20 results from an estimated 300 matches similar to: "How to use API from AWS -- help!"
2006 May 02
3
web services on the client side
i am reading through chapter 20 of the agile web development book and
trying to figure out how to use web services. i set up two different
rails apps. one as the server and one as the client. setting up the
server seems to work fine. but when i use the example at the end of the
chapter to set up a client, i get the following error when i open the
page:
Missing API definition file in
2006 Dec 01
3
Sessions in Layered Dispatching
Can you use sessions in layered dispatching? I used them in direct
dispatching without any problems, but switching to layered throws an
error (saying session doesn''t exist).
Sorry if this is a double post, Google Groups isn''t posting my message
for some reason.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/
125392) and after spending a while debugging through this, I still
don''t have a solution. Lets try again?
I have two controllers, SomeController and Admin::SomeController. When
SomeController is loaded first (which happens under spork, found out
by editing ActiveSupport::AbstractController) I get warning: toplevel
2007 Apr 10
5
Difficulty with body in ActionMailer
AWRDwRv2 is pretty vague on the @body part of setting up a mailer. Here
is my problem:
>> p = Person.find(1)
=> #<Person:0x45c944c>
>> SiteMailer.request_admin_approval(p)
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]=
from site_mailer.rb:10:in
2009 Apr 24
4
Undefined method "redirect_to" in before_filter
Code sample:
class SomeController < ApplicationController
before_filter do |c|
add_crumb "Blah", "/blah" #breadcrumbs plugin
redirect_to :controller => "foo", :action => "bar" unless c.send
(:has_package?)
end
# Rest of the controller...
private
def has_package?
# A bunch of logic work to check to make sure
# somebody''s session contains
2009 Oct 07
2
compile on solaris 64bit, static winbind
Hello,
i got many problems in compiling a working samba to use in our environment.
- solaris 10 on amd64 sun hardware
- version above 3.3.0 because of one of our applications
- samba as memeber server in active directory because of usermanagement on
windows 2003
- 64-bit samba because of many many open files
- static libraries because of relocation error: R_AMD64_PC32 with shared ones
2006 Apr 22
3
Creating a select dropdown box with links to methods
What would be the best way to create a form select dropdown box and upon
"submit" have it directly go to a controller method view?
I have something that somewhat works, but I think there is probably a
much easier way to do it. As of now, I have the dropdown list which
when the form is submitted is handed to a controller method which
basically
I have my dropdown box:
<%=
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
All assumptions aside, "rectest" and "salt" are usernames not
databases/schemas according to the pasted config. If they were in fact
different databases/schemas, this problem could never have happened. While
different database brands may have tricks for ways to handle users and what
they perceive as a database/schema, the fact remains that if 2 literally
separate databases
2007 Dec 10
3
Is the SSL issue solvable for (the apt-get) Puppet version 0.20.1 ??
Hi All,
I''ve been trying to resolve the SSL issue as described on the link at the
bottom. I understand the issue and I''ve tried to implement all the different
patches (one at a time .. :-). However for most of them there are either
files missing or code not found in the files. It seems this is due to a
version difference in Puppet. The docs and patches seem to be for the
2008 Mar 08
7
ridding away with do_request
I''m heading out of town, but had a quick thought I wanted to share.
Rather then using ambiguous named request helpers in controller specs
like "do_request", I''ve been using more readable helpers like
"post_create".
For example...
describe ProjectController do
def post_create
post :create, ...
end
before do
end
it "creates a new
2007 Nov 23
12
namespaced controllers
Out of curiosity, I''ve seen the following fail:
module Admin
describe MyController
...
end
end
But this works fine:
describe Admin::MyController
..
end
Why?
Scott
2003 Jun 29
1
Prob configuring Samba / Ldap an PDC
Hy all
I installed samba with ldapsam-backand acting as an Windows Server but i
was not able to windiws 2k Workstations joining the Domain.
I added the Computername with an $ apended to the ldap-passworddir, i
let run smbpasswd -m -a elli, but i cannot add the Computer to the Domain.
The smb.conf:
--- cut ---
[global]
workgroup = EINSLE
netbios name = SRV01
server string = %h
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
Working on Rails Engine.
I want to make the controllers customizable whereever the Rails Engine is
used.
Therefore, I was trying to use `extend ActiveSupport::Concern` on the
Engine controller class and include it in MyRailsApp.
https://gist.github.com/4185823
# code in my rails engine
moduel MyEngine
class SomeController
extend ActiveSupport::Concern
def engine_some_method
2007 Jul 25
6
Signing certificates with mongrel+apache puppetmaster
Hi,
Is there a way to have puppetmaster sign new clients'' certificates when
using apache+mongrel for serving, without having a separate puppetmaster
instance running webrick on a different port/IP?
I guess this does not work out of the box because apache is told to do
the verification very early in the connection process, at which point it
does not yet know that the client is going to
2013 May 03
1
Two departments on two different locations
Hi there,
like topic sais, I'd like to build a domain-system with two locations.
Our users work one day here the other day in the other place.
The two locations are connected via VPN (10MBit).
To have one datastore in sync on both locations I was thinking about
something like a distributed filesystem (e.g. ceph). Why?
I hope to be able to setup the cluster between the two locations with a
2009 Apr 06
9
setup method in functional tests and instance variables
I have the following in my functional test file.
class UserControllerTest < ActionController::TestCase
fixtures :users
def setup
@controller = UserController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@invalid_user = user(:invalid_user)
@valid_user = users(:valid_user)
end
def test_login_success
2006 Jun 15
3
Need help creating a clever route
What I want to do is wrap all the scaffolded administrated pages for my
webapp into an admin folder in the controllers and views folders.
So...
/app
/controllers
/admin
issue_controller.rb
article_controller.rb
topic_controller.rb
... etc. ...
/views
/admin
/issue
_form.rhtml
edit.rhtml
list.rhtml
new.rhtml
2006 Jul 06
5
Strange RPC error
Hi,
I''m tryng to set up Xen, I have errors and google does not help me.
The situation is simple: I installed Xen-3.0.2 on gentoo.
The Dom0 kernel is up and running, all works perfectly.
But when I try to start a DomU, xm raises this error:
# xm create -c <conf_file>
Using config file <conf_file>
Error: <ProtocolError: RPC2/: -1>
It''s all.
After, `xm list`
2006 Apr 22
7
Instance variables versus local variables
This novice coder roughly understands the difference between instance
and local variables thanks to David Black''s excellent book, but I''m
still unclear as to when and why a either is more desirable to use.
In general, I use instance variables in my controller and local in my
views, but I''m not sure as to why or if this is correct.
Thanks
Joe Kowalski
2006 Apr 18
7
Connecting to multiple databases
Hi Everyone,
I am trying to connect to multiple databases and followed along the
Recipe in Chad Fowlers ''Rails Recipes'' book (which basically is about
establishing the connection in a subclass of ActiveRecord::Base, and
inheriting all classes in need of this connection from this class)
Chad Fowler says:
"You won''t be able to instantiate an External, of course,