Displaying 20 results from an estimated 10000 matches similar to: "Call to session[:somevalue] returns the error "Symbol as array index""
2005 Feb 24
3
Inheriting variables
I'm trying to set a channel variable and make it available to another
channel:
I thought that if I SetVar(_SomeVariable=SomeValue) or
SetVar(__SomeVariable=SomeValue) then SomeVariable would be available in
the destination channel.
However __SomeVariable, _SomeVariable and SomeVariable are all blank.
The scenario:
Agents logon to the queue using callbacklogin. From what I can gather
2018 Jun 08
3
rpmbuild --define | some rpm sorcerer around?
On 08/06/18 19:38, Phil Perry wrote:
> On 08/06/18 15:54, lejeczek wrote:
>> hi
>>
>> how do you pass vars to rpmbuild for definition? eg
>>
>> rpmbuild --define \'"${_definition2}"\'
>>
>> I've been fiddling with ways to escape, but none is
>> fricking working..
>> I mean, rpmbuild rushes to work(no errors nor
2007 Sep 11
1
TypeError => Symbol as array index
Hello,
I''ve got a controller, which I''d like to protect from being accessed by
untrusted users. I saw that you can use before_filter to do it.
I tried before_filter :filter on the page I''d like to protect and then
creating a private method on the super class and it works. I''d now like
to get some information from the controller ... So I tried before_filter
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
Hi All
I can''t for the life of me see what is wrong with this. Maybe it''s cause
it''s midnight...
I want to put some data in a session and I have some code like this:
class ApplicationController < ActionController::Base
model :mything
def ApplicationController.chosen_thing
session[:chosen_thing] ||= MyThing.defaultThing
end
end
So whenever I try to
2004 Jul 08
3
How to pass strings to functions? [once once more, now With content I hope...]
Dear expeRts,
I fail to succesfully pass strings to functions. It comes down to the
observation that
> plot(someVariable,anotherVariable)
works fine, but
> x <- "someVariable"
> y <- "anotherVariable"
> plot(x,y)
does not.
Does this have something to do with the returned value of x being
/"someVariable"/ and not /someVariable/, i.e.
2007 Sep 26
2
How to 5ubscribe with modules
Ok.. munging the tag below to get pas the agressive mailbot
administrivia filter.
I have a manifest the following:
module::foo{"$someVariable": param1=>"x" }
modul::bar{"data":
5ubscribe => [Module::Foo["$someVariable"]]
}
The only way to get past the parsing seems to be to do one of the
following:
5ubscribe
2008 Feb 29
1
Optional data argument for a function
Dear All,
I am working on a function that has an optional data argument, just like lm(). If the user sets the data argument equal to some dataframe, then the function should look inside the dataframe for the variables given to other arguments, otherwise the variables should be accessible from what I believe is called the parent frame from which the function was called. I looked at the source code
2018 Jun 08
0
rpmbuild --define | some rpm sorcerer around?
On 08/06/18 15:54, lejeczek wrote:
> hi
>
> how do you pass vars to rpmbuild for definition? eg
>
> rpmbuild --define \'"${_definition2}"\'
>
> I've been fiddling with ways to escape, but none is fricking working..
> I mean, rpmbuild rushes to work(no errors nor failure) so if you try
> just the command line do not believe it, because later as
2018 Jun 09
0
rpmbuild --define | some rpm sorcerer around?
On 08/06/18 22:54, lejeczek wrote:
>
>
> On 08/06/18 19:38, Phil Perry wrote:
>> On 08/06/18 15:54, lejeczek wrote:
>>> hi
>>>
>>> how do you pass vars to rpmbuild for definition? eg
>>>
>>> rpmbuild --define \'"${_definition2}"\'
>>>
>>> I've been fiddling with ways to escape, but none is
2018 Jun 11
2
rpmbuild --define | some rpm sorcerer around?
On 09/06/18 13:13, Phil Perry wrote:
> On 08/06/18 22:54, lejeczek wrote:
>>
>>
>> On 08/06/18 19:38, Phil Perry wrote:
>>> On 08/06/18 15:54, lejeczek wrote:
>>>> hi
>>>>
>>>> how do you pass vars to rpmbuild for definition? eg
>>>>
>>>> rpmbuild --define \'"${_definition2}"\'
2013 Jun 07
0
[Rcpp-devel] Setting the R random seed from Rcpp
This would be easier if base::set.seed() accepted a value of .Random.seed
instead of just a scalar integer or, new to R-3.0.0, NULL. If set.seed() returned the
previous value of .Random.seed (NULL if there was no previous value) things
might be even easier. People should not have to know where .Random.seed
is stored.
S+'s set.seed() accepts a value of .Random.seed but does not return the
2018 Jun 08
2
rpmbuild --define | some rpm sorcerer around?
hi
how do you pass vars to rpmbuild for definition? eg
rpmbuild --define \'"${_definition2}"\'
I've been fiddling with ways to escape, but none is fricking working..
I mean, rpmbuild rushes to work(no errors nor failure) so if you try
just the command line do not believe it, because later as it executes
%if you will see process does not see these definitions.
many
2006 Jul 05
1
Securing my database with user session data
I have a few forms that adds information to a database, and one of the
fields is "user_id" This field relates the stored information (in this
case a "route") with the user who entered it.
I have a few questions.
First, is the controller the best place to set the user_id? Right now I
am using,
@route = Route.new
@route.user_id = session[:user].id
@route.save
Should this
2004 Dec 21
1
Call routing based on remote ip address.
While setting up my first dial plan, I find that notions like remote
ip, network, or incoming network interface seem to be totally lacking
regarding calling parties, where * still seems to fully rely on the
easily spoofable caller id.
Especially, allowing only certain ips or networks to enter a specific
context in the dial plan is apparently not possible, at least in the
h323 world. Don't
2006 Mar 25
0
Session not working in testing mode
Hi,
I''m having a problem with my sessions. I recently switched from storing
sessions on disk to storing them in MySQL. I ran rake
create_sessions_table to create the sessions table. But instead of just
using the standard table, I wanted something fancier. I would like to
know who is currently logged in, so I added the field user_id to the
sessions table. In the Rails wiki
2006 Feb 16
6
session usage
Clearly I have the session and can see that session[:user_id] = 7
Now I want to use the results of this...in a page...so I am trying to
use the instance variable
@sess_user
and at the top of the application controller, I have either...
@sess_user = User.find([:first, "id = ?", session[:user_id])
or
@sess_user = User.find([:first, "id = ?", session[:user_id])
gives me an
2006 May 08
2
session[:user_id] / name problem! Help!
Ok, I have a login on my site, and when I log in, I want to display
"Welcome #{user}".
In my session, if I do "Welcome <%= session[:user_id] %>" I''ll get
"Welcome 1" which is right, but how can I access the name based on the
session id?
For instance, essentially I want to do this:
"Welcome <%= session[:user_name] %>"
or
2006 Apr 28
3
store user id in session or find user id
Hi
Im uisng the lgoin generatior that as far as I can tell stores the
username in session.
I have another table that i need to store the id of the user who creates
an entry. (the logged in user)
Is it possible to store return the id and store it in session once the
user is created.
then do somthing like @project.user_id = session[:user].id;
or can I perform a search in the product table
2006 Nov 04
0
test/controller not using activerecord session
I''m using zentest and the test::rails class to do my controller
testing, and the following line in my controller throws an error:
session.model.user_id = user.id
It looks like session is just a hash when testing, which would be well
and good except that now I have to write
if session.respond_to?(:model)
session.model.user_id = user.id
end
which doesn''t feel right to me
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers,
For some time now I''ve been looking for a decent Rails equivalent of PHP''s
"htmlentities" command, because ERB''s html_escape (or more commonly called as
just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me.
Back in PHP land, I actually had an extended version of the htmlentities
command to deal with