Displaying 20 results from an estimated 300 matches similar to: "numeric key in yam file to be used by config file"
2008 Apr 15
2
environment.rb uninitialized constant when starting console
I have the following code in environment.rb:
require File.join(File.dirname(__FILE__), ''boot'')
raw_config = File.read(RAILS_ROOT + "/config/config.yml")
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV]
This works fine when running the server, but if I try and start a
console I get:
Loading development environment.
2006 Nov 24
6
Rails 1.2 RC1 problem
Hi
Have this helper method inside a sites_helper.rb module
def distritos
[
['0', 'Todos'],
['1', 'Aveiro'],
['2', 'Beja'],
['3', 'Braga'],
['4', 'Brangança'],
['5', 'Castelo Branco'],
['6', 'Coimbra'],
['7',
2011 Apr 21
1
Rails 3 Foreign Domain routing - cannot get this to work!
Hello,
I''m trying to build an app (mysuperapp.com) that allows users to create
an account in which a default subdomain (IE: joeshmoe.mysuperapp.com) will
be
created as their homepage. In their profile settings, I also want to give
them the ability to add their own domain name so their homepage now can be
joeshmoe.com. I know this is possible in rails w/ plugins like
subdomainfu
2007 Aug 07
0
Edge Rails and ActionMailer problem (Bad file descriptor)
Hi,
I have just updated my rails app to use edge rails, however whenever I
attempt to send an email using action mailer, I gain the following
error, any suggestions t whats going wrong?
Bad file descriptor - connect(2)
I am using the following settings
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address =>
2006 Sep 05
0
Yam not generating repomd.xml
I think I have obeyed the docs. Metadata in yam conf says repomd
(formerly createrepo but led to "unexisting --update option" message).
Conf is otherwise pretty close to examples. I have downloaded Centos
4.4 ISOs, I have done yam -gv, ISO files are correctly mounted and
published via HTTP, etc but no xml files are generated anywhere under
/var/www/yam. What am I overlooking? Can I have
2006 Sep 15
4
yam help
I am trying to use yam to create a repo based on the 4.4 CDs. I have
copied the contents of the CDs to /var/dist/CentOS-4.4-i386. No
matter what I try, yam always creates an emtpy repo.
This is my current yam.conf file:
[main]
srcdir = /var/yam
wwwdir = /var/www/yam
arch = i386
[centos]
name = CentOS $release ($arch)
release = 4
arch = i386
metadata =
2005 Apr 06
1
yam at ftp.linux.ncsu.edu
I had yam working with ncsu.edu until the things changed when centos
seperated the two projects.
Now I can't get it to work. This is what I am trying to use but it says
"nothing to do".
updates = rsync://ftp.linux.ncsu.edu/centos/$release/$repo/$arch/RPMS/
This with gatech on the other hand works but they have a 20 connection
limit so I would like to
get ncsu.esu working again.
2008 Jan 31
1
RSpec and the Basecamp API
I realise that this is kind of a basic question but I''m new to rspec and
still trying to work out how to do things. I''m working on a rails project
that requires basecamp integration via the api, which is fairly trivial to
use via the basecamp.rb wrapper:
Connection:
basecamp = Basecamp.new(APP_CONFIG[''api_host''], APP_CONFIG[''api_username''],
2009 Mar 25
1
I18n + ActionMailer = conflict ?
Hi there,
can anybody tell me why I get the error message:
"undefined method ''t'' for #<Mailer:0xb6d501e0>"
... when I call the following Mailer?
=================================
class Mailer < ActionMailer::Base
def signup_notification(user)
@recipients = "#{user.email}"
@from =
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
Please help me solve the following error message:
syntax error, unexpected tINTEGER, expecting $end
I have this model:
Code:
1. class GeoDatum < ActiveRecord::Base
2. end
The database contains the table geo_data, which contains the zip_code
column, filled with zip codes. I get the above error when searching
for a zip code and the zip code exists in the table. Here is the
2011 Apr 27
3
Can't configure cach_store in an initializer
I''m trying to use redis-store as my cache_store. I also have an
app_confirg.rb initalizer which loads a yaml file for config settings.
In my redis.rb initializer I have:
MyApp::Application.config.cache_store = :redis_store,
APP_CONFIG[''redis'']
However, this doesn''t appear to work. If I do Rails.cache in my rails
console I can clearly see it''s using
2006 Oct 03
1
line too long in editor... (textmate)
my where :condition string line is too long in my editor, (Textmate...)
if I do a LR, I got a \n in my string, how can i get it displayed in
multilines without this garbage in the string :
here is the kind of string I am manipulating
cond_a.append ["(bookings.start_at == ? OR bookings.end_at == ? ) OR
(bookings.start_at <= ? AND bookings.end_at >= ? )",
2006 May 05
1
Help with ActiveRecord
Model:
class AdminQueue < ActiveRecord::Base
set_table_name ''adminqueue''
end
Interacting with it in script/console
>> AdminQueue.new
=> #<AdminQueue:0x240a910 @attributes={"topic_id"=>nil,
"resolved"=>nil, "updated_on"=>nil, "action"=>nil, "type"=>nil,
"post_id"=>nil,
2008 Aug 29
4
newbie question for installation
Hi all...
just something really confused.
Today I downloaded "ruby186-26.exe" according the tutorial..
then have it installed without problem
then I use "gem install rails --include--dependencies" to get rails
then when I use "rails testabc" for my first application
I got following errors:
.
..
...
create script/process/reaper
create
2009 Feb 09
2
dynamic constant assignment
I have a constant set up like that :
ALL_LOCALES
=> {"it"=>"Italian", "fr"=>"Français", "de"=>"Deutsch", "en-
GB"=>"English (UK)", "es"=>"Español (España)", "pt-PT"=>"Português",
"pl"=>"Polski", "en-US"=>"English
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using InstantRails
for the server. In my app I have the folowing controllers:
admin_controller
application_controller
city_map_controller (with method: displayGMap)
The admin_controller was created with the following command:
ruby script/generate scaffold
2010 Dec 03
2
Rails 3 console ...
In the console
to check my paths, I used to write ( In Rails 2)
include ActionController::UrlWriter
then I could test my paths : new_project_path , ....
but now in Rails 3
include ActionController::UrlWriter
gives an error
NameError: uninitialized constant ActionController::UrlWriter
sure something changed, any other additional include needed ?
thanks fyh
--
You received this message
2009 Jan 29
0
How to get rid of an ActiveRecord warning "already initialized constant"
I need to get a proxy class for a specific AR validation
I reuse a piece of code (from Globalize), where it''s set as a
constant :
module Globalize
module Model
module ActiveRecord
class << self
def create_proxy_class(klass)
Object.const_set "#{klass.name}Translation", Class.new
(::ActiveRecord::Base){..}
..
end
so in my validation module,
2011 Jan 06
0
Irritating bug on Sanitarium (game)
So, after a lot of work and headaches I finally got the game I wanted (Sanitarium) running well on Wine.
Except one thing.
The cursor leaves this anoying trace of black color behind. And the game is a "point&click" game. Which makes this really anoying.
Is there any way I can solve this? On AppDB people don't seem to complain about that on older (and unstable) versions of the
2006 Dec 14
3
Problem with ActiveRecord and Associations
Hi,
I''m having what I believe to be a typecast problem with ActiveRecord and
Associations. In the code below, I need to flag a contact record for
deletion if the contact doesn''t have any addresses or books records:
sql = "select id, delete_flag from contacts where id = #{params[:id]}"
contact = Contact.find_by_sql(sql)
if (contact[0].addresses.count +