Displaying 20 results from an estimated 4000 matches similar to: "Okay, new question - dealing w/ logging in restrictions (controller?)"
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here:
http://railsforum.com/viewtopic.php?pid=25439#p25439
Don''t think it would be required to completely re-type it here :)
Thanks!
--
-Daniel Fischer
http://danielfischer.com - Geek Blog
http://abigfisch.com - Portfolio
http://writersbeat.com - Writing Community
2007 May 25
1
RCov?
Sorry to be a newb about this, but I''m trying to integrate rcov into my
tests. I tried to follow the example located here:
http://rspec.rubyforge.org/tools/rcov.html
But to my dismay, I just don''t understand what to do. I tried to run that
task in the rspec plugins directory, but it threw an error about pre_commit.
Regardless though, I want to be able to rcov all of
2007 May 24
3
Annoying problem, stack error
For some reason rake spec is totally crapping out on me.
I don''t know what I did to make it break, the only thing I tried new
was install haml, but even after removing it there is still a stack
trace.
Here is what I am getting-
sparta at phalanx ff $ rake spec
(in /Users/sparta/Projects/work/idastudios/ff)
2009 Jan 07
0
Actionmailer and postfix settings
Hi,
I am having problems configuring my actionmailer to work with postfix.
I followed this tutorial: http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1
and i got the server set up.
at first i fixed the mail settings to work with gmail using this
tutorial:
http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/
and my app worked
2007 Jun 02
7
I''m really bad at controllers, help please.
Hey,
Sorry for so many questions - I''m really bad at this right now.
I''m trying to cover the following code w/ rspec
def index
if params[:user_id]
@user = User.find(params[:user_id])
@messages = @user.messages
end
end
So basically what I''m doing is listing all the messages for a user,
provided there is an id parameter.
describe
2017 Nov 09
2
Postlogin script
Hi,
I would like to prepare postlogin a script that allow imap connection to
roundcube for all but restrict imap access for selected users.
My question is that:
Is possible in condition IF use IP addresses as range or with mask (because
I've more than one web servers) ?
My script:
#!/bin/sh
if [ "$IP" = "172.11.0.28" ] ; then
printf "* [ALERT] Access allowed from
2017 Nov 10
1
Postlogin script
Thx, prips works as I expected, gr8 tool, not available in Gentoo repository
but after compilation Dovecot doing what I wanted.
Regards,
Jack
2017-11-09 21:19 GMT+01:00 Gedalya <gedalya at gedalya.net>:
> A bit clunky but perhaps you could find another command.
>
> https://packages.debian.org/stretch/netmask
>
> $ IP=172.11.0.28
> $ if [ "$(netmask -n $IP/24)"
2007 Jul 31
0
Edit not working with named routes
HELP! I''m a relatively new rails user and I''m stuck. I''m trying to
build a relatively simple blog and I decided that I liked the way
named routes look in the code. So I added
map.resources :posts
to my routes.db file. I then went through and updated my controller to
take advantage of the named routes that were generated. I also updated
all of my views and everything
2017 Nov 09
0
Postlogin script
A bit clunky but perhaps you could find another command.
https://packages.debian.org/stretch/netmask
$ IP=172.11.0.28
$ if [ "$(netmask -n $IP/24)" == "???? 172.11.0.0/24" ]; then echo OK; fi
OK
$ IP=172.12.0.11
$ if [ "$(netmask -n $IP/24)" == "???? 172.11.0.0/24" ]; then echo OK; fi
$
Range:
https://packages.debian.org/stretch/prips
$ IP=172.11.0.28
$
2018 Jul 27
0
Imap post-login script
Dovecot v.2.2.32 and I have configured two imap post-login scripts and it
seems like after successfully login scripts are not closed
(dovecot_node/imap imap-postlogin : multiple processes are running still)
and after some times there are too many processes
and the limit is reached (imap proces_limit 1500):
1)
#!/bin/sh
case $IP in
10.10.1[1-2][0-7].*) exec "$@" ;;
2003 Oct 13
1
out going calls
I am not having any luck placing out going calls
I dial the number 08 82420173 ( our outside line )
But all I get is engaged signal and log this.
Oct 14 08:40:14 DEBUG[16401]: File pbx_wilcalu.c, Line 65 (autodial):
Entered Wil-Calu fd=20
Oct 14 08:40:14 DEBUG[8201]: File chan_sip.c, Line 657 (create_addr):
Setting NAT on RTP to 0
Oct 14 08:40:14 DEBUG[8201]: File chan_sip.c, Line 548
2003 Sep 22
1
Can't get simple config working!
Hi all.
I'm trying to get a simple configuration working so I can later expand it to
something more interesting.
I'm using kphone to call an extension on the * server. When I try to connect,
I get this error:
DEBUG[81926]: File chan_sip.c, Line 3562 (check_user): Setting NAT on RTP to 0
DEBUG[81926]: File chan_sip.c, Line 527 (__sip_ack): Stopping retransmission
on
2005 Jun 30
0
Sipura 3k answers then immediate busy signal
I have a sipura 3000 that I am using just to send calls to my mac asterisk
server. When you call the phone it rings, answers, and then goes right to a
busy signal. Any ideas?
Thanks for your help!
Jane
At the console in verbose mode I get:
*CLI> DEBUG[8501248]: File chan_sip.c, Line 663 (create_addr): Setting NAT
on RTP to 0
DEBUG[8501248]: File chan_sip.c, Line 554 (__sip_ack): Stopping
2009 Dec 03
2
Dynamic Paths
Hey there,
I''m in the muck of a major rails project, and need a bit of advice. Google
isn''t much help in this case, so I came here.
I''m trying to set up a URL structure as follows:
url.com/username/blog/post_id
where the user has_many posts and the post belongs_to user. I''m using the
friendly_id plugin to enable easy lookup with the user''s username,
2012 Apr 04
1
Subscript Error
json_dir is a list of JSON lists mapping lat/long route points between
locations using CloudMade's API.
post_url is the URL of the HTTP request
for (n in json_dir) {
i = i + 1
if (typeof(json_dir[[i]]) != "NULL") {
if (i == 1) {
dat_add <- ldply(json_dir[[i]], function(x)
t(data.frame(x)), .progress = "text")
2003 Nov 06
0
SIP nat not working with budgetone (long)
I've been looking at how our budgetone's have been failing and have found the following:
A quick layout --
Latest CVS as of tonight.
Sip phone behind NAT.
* server with public IP address.
-------from sip.conf for my phone:
[1747xxxxxxx]
username=xxxxx
secret=xxxxx
host=dynamic
type=friend
nat=yes
-------
-------from the * log messages
Nov 6 01:50:07 DEBUG[4101]: File chan_sip.c,
2006 Apr 11
1
Double redirect
I have two before_filters for my application that both redirect. The
first checks whether there is an active session and if so, whether it
has timed out (a la the recipes book). This is run from
ApplicationController. The second filter is in use throughout most of
the app and checks to see whether the user has the correct credentials
to view the controller. This is run from individual
2010 Apr 22
0
How to automatically set params based on passed object when generating a route?
Hi,
having i.e. a post model that has many categories - is it possible for
member routes like i.e. post_path(post) to generate path like "/
posts/:post_category_name/:post_id" without manually passing the
category param? Does anyone know if there''s a gem or if I can simply
override the post_url method to automatically set category from post
object?
The best I could get right
2003 Oct 23
6
Problems with * and IAXTel/FWD
Hi all
I've been trying to make * work with IAXtel to no avail, all seems ok in
the config but am not getting anywhere
This is what I'm getting from console (user/pass/dest # changed for
obvious reasons):
DEBUG[1133735216]: File chan_sip.c, Line 3841 (check_user): Setting NAT
on RTP to 0
DEBUG[1133735216]: File chan_sip.c, Line 4891 (handle_request): Check
for res for phone1
2007 Aug 08
5
Can''t seem to spec a ActiveRecord::RecordInvalid exception properly...
1 def create
2 @user = User.new(params[:user])
3 @user.save!
4 self.current_user = @user
5 redirect_to user_path(@user)
6 flash[:notice] = "Thanks for signing up!"
7 rescue ActiveRecord::RecordInvalid
8 render :action => ''new''
9 end
I can''t seem to properly spec this out. I am trying numerous things, the
latest one is