Displaying 20 results from an estimated 3000 matches similar to: "Variable Scoping Problem"
2008 Apr 20
2
mod_rails showing plain text instead of actual page
hello!
i got this forum powered by apache and mod_rails
lately when i create / edit posts, i get plain html text showing up
instead of the actual page.
here''s what i see:
--
Content-Type: text/html; charset=utf-8
Set-Cookie:
_mysite_session=BAh7CzoOcmV0dXJuX3RvMDoKdGl0bGV7BmkVdToJVGltZQ2IDhuAK1UeADoL
%250AdG9waWNzewZpBnU7Bw2HDhuA2%252FZJ7zoJdXNlcmkGIgpmbGFzaElDOidBY3Rp
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
On Mon, Apr 25, 2016 at 11:11 AM, Olivier <oza.4h07 at gmail.com> wrote:
>
>
>
> 2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph at digium.com>:
>
>>
>>
>> On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph at digium.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07
2011 May 17
1
multiseat support in LightDM?
Does LightDM support multiseat setups?
For example, I have a PC with multiple graphics cards, monitors,
keyboards - used by multiple users concurrently.
Will LightDM let me use one PC by many users concurrently (i.e. login
screen on every monitor, allowing to start different sessions for
different users).
--
Tomasz Chmielewski
http://wpkg.org
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph at digium.com> wrote:
>
>
> On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07 at gmail.com> wrote:
>
>> Hello,
>>
>> I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
>> Is this setting also supported in pjsip_wizard.conf ?
>> On a fresh 13.8.2, it
2011 Jan 14
1
Help on a Display function
>
I wanted to simulate the Matlab DISPLAY function for some time now.
After seeing a recent proposal by Gabor Grothendieck I came up with the
following solution,
display <- function(...) {
my_names <- lapply(substitute(placeholderFunction(...))[-1], deparse)
for (my in my_names) cat(my, "=", eval(parse(text=my)), "\n", sep=" ")
}
that works about as
2016 Apr 25
2
Is set_var allowed with pjsip_wizard.conf ?
Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Feb 21
2
self.prepend_view_path - am I missing something
I have an app that varies its content based upon the domain from which
it is being accessed. Some of the domain characteristics are
supported in the model but it is easier varying static text in the
views and then sharing the form templates via partials etc.
Rails 2.3.10 and looking at the documentation at
2002 Mar 14
1
gif, jpeg and png image files reader AND tcltk image
Hi all,
Roger Peng and Jason Turner's suggestion with ImageMagick seem to be the
simplest "dirty" way
to get the problem solved.
But I ran into yet another interesting but quite round-about way to solve
the problem (partially). Through tcltk package, one can read in the gif
image with
> x <- tkcmd("image", "create", "photo", file=mypic.gif)
2006 Jul 07
13
Rails Recipes Book: Authentication
Hi,
The user/login management system in Chapter 31: Authenticating Your
Users and Chapter 32: Authorizing Users with Roles of Chad Fowler''s
Rails Recipes looks reasonable and adequate. However, when I ran the
Chapter 31 code, I get the following error:
Username or password invalid
And I am not even given the chance to sign in; that is, the signin form
does not appear at all.
Has
2016 Sep 08
3
PJSIP Weirdness, or just my weirdness?
Hello!
Oh, wise ones, ponder with me over two of the surprises that
populate the universe!
I have a phone, that I sometimes cannot reach, connected via pjsip.
It can call other extensions just fine, it can call out over a
trunk to my cell, all is well, but getting a call? Forget it most of the
time.
Here is all the config relevant to that phone:
[murftest12]
type=aor
qualify_frequency=1992
2009 Jul 09
8
Only One Controller + Urgent
Hi Champs,
Need Help .. :(
Actually the thing is that i am having many controllers a, b, c and d..
But what i want it that only "a" should be displayed to the users .. b,
c, d not ..
Is there any way to do it .. ?
Cheers ..
--
Posted via http://www.ruby-forum.com/.
2007 Mar 20
1
Passing Arguments to before_filter
I want to put a before_filter in application.rb, as follows:
before_filter :do_something, :except_controller => [:admin]
def do_something(options)
options.stringify_keys!
unless options[:except_controller].include?(controller_name)
# do something useful
end
end
Where I''m blocking is on how to get the ''options'' data in the do_something
method. I think I
2006 Jun 07
3
Silly question re: scoping of controller actions
Say that there''s a piece of functionality I want to call everytime the
controller is invoked, regardless of what action I am calling. Where do
I put that, exactly?
Can I do that?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my
application.
This menu is the same for all controllers, but I want this behaviour:
<a>Users</a>
<span>Statistics</span>
and
<span>Users</span>
<a>Statistics</a>
depending on the page you''re currently on.
I''ve put a <render :partial =>
2006 Aug 07
2
Ugggh..another recipes question
sorry, because it seems that I need more explanation on this Rails
Recipes authorization -
I finally got the code working but after using the login I get this
back from Rails-
Routing Error
No url can be generated for the hash {}
I''m guessing it''s coming from the redirect-
def login
if request.post?
session[:user] = User.authenticate(params[:first_name],
2006 May 16
2
before_filter and the application controller
Hi there,
I''m having a bit of an issue with my before_filter. I know that the filters
put in the application.rb controller are global for all the controllers. In
my application filter I''d like to allow access to the RSS feed method in a
''member'' controller and skip the login checks that the before_filters are
currently performing.
In my application my filters
2006 Mar 30
1
flash, before_filter and redirect_to
I leave a notice in the flash and do a redirect from a before_filter.
Can someone confirm that the first request after this, i.e. the page I
redirect to, doesn''t/isn''t supposed to clear the flash?
--
View this message in context: http://www.nabble.com/flash%2C-before_filter-and-redirect_to-t1367103.html#a3665933
Sent from the RubyOnRails Users forum at Nabble.com.
2006 Jul 22
4
Accessing the controller name in your views?
I need to know what controller and action the user is currently in
to do various things in my layouts/application.rhtml file. Isn''t
there is a better way than:
<% if params[:controller] == "whatever" && params[:action] ==
"whatever" %>some html<% end %>
I know in the controllers you can just use controller_name, but that
is not provided
2006 Jul 12
3
How to get the current URL?
Hi,
how can I get the current URL withing a controller? There seems to be no
appropriate method in ActionController::Base.
I''m creating a site, which requires a login for some pages. I''m using
before_filter for authentication. My idea was to store the currect URL
in a session before redirecting to the login page and then redirect to
this URL after successful authenfication.
2007 Oct 23
9
Running rails specs outside of the normal project tree
I want to create a spec/regressions directory with various
regressions (for my rails project). I tried the following:
describe LoginController, "regression for user creation when
steves_sister does not exist", :behavior_type => :controller do
controller_name :login
before :each do
@params = {
"commit"=>"Create Account",