search for: crockett

Displaying 6 results from an estimated 6 matches for "crockett".

2008 Dec 16
3
ApplicationProperties
Hi There, I was wondering what the appropriate way to use the applicationproperties.rb model was. I was hoping to query it to find out which users are developers for my app and then grant special permissions to them ... I tried creating something like this: class ApplicationProperties < ActiveRecord::Base def facebook_session @facebook_session ||= returning
2007 Jan 31
1
Fw: error after installation
----- Original Message ----- From: "jepoy" <jcb at dream.com.ph> To: <lrosa at hypertrek.info> Sent: Wednesday, January 31, 2007 1:43 PM Subject: Re: [Dovecot] error after installation > > ----- Original Message ----- > From: "Luigi Rosa" <lrosa at hypertrek.info> > To: "Dovecot Mailing List" <dovecot at dovecot.org> > Sent:
2008 Nov 25
0
Sanitizing the New Session Key Format
...;) /[^0-9a-zA-Z-]+/ =~ id.to_s ? false : true end end end end The above code tricks rails into thinking the session key only contains alphanumeric characters. How will the non-alphanumeric characters affect rails? Does anyone have a better solution for this problem? - David Crockett
2001 Sep 15
1
Last Night of the Proms
This is NOT official, and NOT supported, but as the proms are a free to all event, I thought I'd set up an Ogg stream for anyone that's around today and wants to listen in. The traditional last night music has been replaced in recognition of the events of the last few days. http://dev5.kw.bbc.co.uk:8001/proms.ogg 'til 1045 BST, but beware it's 128kbit. There are various
2008 Sep 02
3
Unable to set default_url_options[:host] for Action Mailer
I am attempting to provide ActionMailer with the request host needed to generate a url. Here is my code: In config/environments/development.rb config.action_mailer.default_url_options = { :host => "development_url.com" } and in config/environments/production.rb config.action_mailer.default_url_options = { :host => "production_url.com" } When I run the above code
2008 Jul 07
3
How to get a users screen name into a hidden field in a PostsController action?
Instead of the user entering a name, I want to pass their screen name along with supplied :title and :content fields. here is what I''ve got.. f.hidden_field :author, user.screen_name here is the create method from Posts controller: def create @title = "Gravity" @user = User.find(params[:id]) # this does not work, and I don''t know why if request.post?