Displaying 20 results from an estimated 600 matches similar to: "Rails producing the / page."
2007 Sep 05
1
smbd starting up as non-root user
Hi all,
FreeBSD 6.2-RELEASE-p7, with standard port-built Samba 3.0.25a.
Samba is running as a PDC, serving a small LAN of about 20 XP Pro hosts.
Permissions on the [profiles] share are 0700, root:wheel owned, with
each user's profile being owned by the user's UNIX user:wheel and with
0700 permissions. [homes] is fairly standard - I have left home dir
ownership and permissions as
2006 Apr 17
40
Convince me to buy TextMate!
I got a Powerbook recently and am debating buying TextMate. I installed
the trial and have checked it out, but don''t see what''s so great about
it. AFAICS it''s the Ruby and Rails macros for expansion and other stuff
that might be it. Other than that, TextMate seems like a pretty basic
editor. I currently use PSPad and Editplus, and I could probably
get/make macros
2011 Jul 06
5
Monkey patching a gem (rails_admin, with Rails 3)
Hi.
I''m trying to monkey patch the rails_admin gem.
First, I tried to add a file in config/initializers containing:
RailsAdmin::MainController.class_eval do
def get_sort_hash
CODE HERE...
end
end
It was only loaded once, and then the method from the gem was always
executed instead of mine.
I also tried to add the code in lib/ with the correct line in
config/application.rb to load
2006 Feb 15
2
extending rails via /lib - problems
I wanted to group some functions which I use in some models in one
place. Controllers have application.rb and views have helpers but I
couldn''t find anything about models. Using the /lib directory seemed to
be the only way.
Alright... so I have something like this:
/lib/code.rb
class ActiveRecord::Base
def method_a(n)
.......
end
def method_b(n)
........
end
end
2006 Jul 16
6
using collection_select
hello,
supposing i have a User class that contains a Wibble
class User < ActiveRecord::Base
has_one :wibble
end
in my view i have
<%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %>
when i post, i get an error like
"Wibble expected, got String"
how/where am I supposed to convert this posted wibble_id into a
Wibble, or am I using collection_select
2006 Apr 17
2
Understanding when flash gets reset (render vs. redirect_to)
All,
I have a controller action that will do a different "render (:action)"
call
depending on whether or not data is valid.
When the data is invalid - I set a flash element to hold a message.
However, when I post back to this controller action and have valid data,
I still have the flash element set, which I don''t want.
I believe this is because I did a render from the
2006 Apr 21
8
Stop Models auto loading
Is there a way to stop Rails automatically trying to load models?
Cheers,
Nicholas
2008 Mar 04
9
What is your workflow? Or how to use the story runner the right way.
I really would like to know how people are using the Story and Example
runner to write their software.It would be great to get some direction on
it, because I think I''m missing some points.
Taking the outside-in approach in thought:
At first we write a high-level customer-facing story, this story fails.
Then we start using mocks at object level to use them as a design tool,
and so we
2006 Apr 12
3
noob question
Hi *,
I am writing my first app based on the ''depot'' application but with some
suttle differences to help me learn.
I am a bit sutck with following and would be grateful for any help:
I have the following controller:
class MainController < ApplicationController
def index
@objects = Object.certified_items
end
end
This relates to a field called
2003 Sep 11
1
Setting up a local shared mailbox
One: I have never set up an IMAP server before, so I thought I would ask
first before blindly stumbling around. The problem I am want to solve is
this: my wife and I have a "joint" email account that we both want to access
(we also have our own personal accounts, but that's beside the point.) I
posed the question to my local LUG, and several suggested setting up a local
IMAP
2007 May 01
2
Problem validating boolean
Hi
I''ve got a problem validating a boolean and I can''t see what the
problem is. Here''s my model:
class FinanceAgreement < ActiveRecord::Base
belongs_to :asset
validates_presence_of :finance_company
validates_inclusion_of :balance, :in => 0.01..10_000_000
validates_inclusion_of :term, :in => 1..600
validates_numericality_of
2007 Jan 25
9
Constant directory checksum changes
notice: /subject.sol1.net/virtual_mail_server/File[/etc/postfix]/checksum:
checksum changed ''{time}Thu Jan 25 16:31:08 EST 2007'' to ''{time}Thu Jan 25
16:36:39 EST 2007''
I know there''s something weird in the directory modification detection that
causes the next run after things actually change to suffer from this
problem, but I''m getting it
2013 Oct 17
4
MusicOnHold starts magically for no reason
Dear list,
on Asterisk 1.4.21 which is being used in a callthrough scenario -
callers call via PSTN to a DID coming in via SIP and then dialing
outbound via DTMF and the outbound calls get routed via some SIP
termination provider - lately I see that every now and then MusicOnHold
gets triggered like this on outbound calls:
Started music on hold, class 'default', on
2017 Aug 10
2
Keys used to sign releases
I see that some, but not all, releases provide a local link to the key used
to generate the signature files, which makes it difficult for a script to
use them to verify the signatures.
Gcc solves this problem by including the following on their mirrors page (
https://gcc.gnu.org/mirrors.html):
The archives there will be signed by one of the following GnuPG keys:
- 1024D/745C015A 1999-11-09
2016 Feb 12
2
Segmentation fault on doveadm search -A with a huge user base
Hi,
I'm using dovecot 2.2.9 with a director/backend setup. The user base is
about 4711 users currently.
If I start at one of the directors
doveadm search -A all savedbefore 5000d
it terminates with
doveadm(1rrissma): Error: doveadm server disconnected before handshake: EOF
doveadm(1rrissma): Error: 2001:638:913:f33::5:ff:24245: Command search failed for 1phaaman: EOF
2007 Feb 06
3
Using any_instance with Rails to make sure the right thing is saved?
I''d like to test that an object with the correct attributes is saved,
something like:
def test_create_without_existing_suite
this = self
w = Annotation.any_instance.expects(:save).with do |x|
this.assert_equal ''fnord'',
some_way_get_the_name_of_the_receiver_of_save
true
end
w.returns true
end
But the object is created inside the method
2006 Aug 01
8
Dumb views?
Hello again! I''ve another "what would you do in this situation" question.
You''ve got 6 controllers, one named base. The other 5 controllers extend
base. Currently they share one layout.
Your layout displays navigation. However, there are two actions inside base
for which you do not want navigation displayed (index, new).
Do you...
a) Add logic to your layout telling
2006 Apr 27
5
ERb on he command line re: Ruby For Rails book
Hi,
I am working thru the Ruby for rails book. On page 30 David Black
talks about running erb from the command line i.e. $ erb erbdemo.rb
just as you would a normal ruby prog ($ ruby erbdemo.rb) but when I
try to do this I get command not found. How do I make this work? I am
running Linux (Ubuntu Breezy)
Regards,
Paul
2016 Jul 13
3
PJSIP defaults for endpoints when using realtime
Until Asterisk 11 I could use sip.conf to set defaults for all
phones (language, dtmf, vmexten, etc) and just leave many fields in the
database as NULL. What would be the proper way to do this for Asterisk
13 and PJSIP?
--
Telecomunicaciones Abiertas de M?xico S.A. de C.V.
Carlos Ch?vez
+52 (55)9116-91161
2003 May 13
1
Re: List-id test
On Mon, May 12, 2003 at 06:44:06AM +0300, Timo Sirainen wrote:
> On Mon, 2003-05-12 at 04:21, Timo Sirainen wrote:
> > Just enabled List-* headers, testing if this still works..
>
> Hmm. Wondered about why List-Id header used wrong host name and started
> looking at Ecartis' sources .. Wasn't it written in Perl? I had believed
> so for quite a long time for some