Displaying 20 results from an estimated 1500 matches similar to: "Model load time"
2011 Sep 21
0
hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)
I''m working on a gem <https://github.com/bradrobertson/apartment> that sets
properties on ActiveRecord models (such as table_name) dynamically based on
a user config option.
I have an initializer that achieves this. My problem however is that in dev
mode, these classes are reloaded, so they don''t maintain these values set.
So I thought I''d use a railtie to
2006 Apr 11
2
AR class names
hello all, quick question: how can I find out if a given string matches the
name of an ActiveRecord derived class?
thanks in advance
alan
2011 Apr 02
7
rails_upgrade maintenance
There was a thread a little earlier in the year about maintaining the official Rails plugins. It would seem that rails_upgrade has been left by the wayside, with pull requests dating back as early as September last year. It''s mentioned in the 3.0 release notes as a way of checking your application for changes between 2.3 and 3.0, but what''s the point if the official version of it
2007 Jan 23
11
dynamic tablenames
Hi List!
May I tap into your combined common sense ?
I have a legacy logging app that needs to be modernized. At the moment,
Data is going to be stored in 5 tables, one table is going to contain
more than 200 million and 2 others about 60 million rows. Mysql will be
used, unless someone sees a major advantage in using something else (at
the moment data is stored in a raw positioned file format,
2005 Mar 01
4
PostgreSQL Schema and Rails
Hey all,
I am curious about how Rails interacts with SCHEMAs in PostgreSQL. From
the generate command, is it possible to setup a scaffold for a table not
in the public. schema in PostgreSQL?
As a test, I tried,
./script/generate scaffold Manage.Form Manage.Form
No dice.
Any suggestions?
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON
2011 Dec 22
0
Problems with database config and prepare_to method
In my production environment I have 1 server running as mainappserver (
ex. 10.10.10.10 ) ( Rails + Apache2 + Mysql ) and during heavy periods
we startup a second application server that just handle the Rails
application calls.
The second application server ( ex. 20.20.20.20 ) connects to the mysql
of the mainappserver as specified in the database.yml :
production:
adapter: mysql2
2011 May 26
2
Rails new without test unit
When creating a new rails project (3.1.0.rc1) with no test unit
options, it still create test unit rake tasks.
rails new my_project --skip-test-unit
rails g :
TestUnit:
test_unit:controller
test_unit:helper
test_unit:integration
test_unit:mailer
test_unit:model
test_unit:observer
test_unit:performance
test_unit:plugin
test_unit:scaffold
Is this correct ??
--
You received
2006 Mar 15
1
manipulating weeks dates
Hi,
I have these vectors:
> WEEK <- rep(c(1:52),2)
> YEAR <- rep(c(2000,1999),c(52,52))
How to make a vector of Date with weeks in years? I try as.date from survival
package, but it dont work with weeks, just only with days, months etcs.
Thanks
Ronaldo
--
"Realmente minha cidade e muito facultativa"
--Elivelton, ao rep?rter da Jovem Pan que falava das muitas
2011 Nov 29
1
Read TXT file with variable separation
Hi!
I have to import some TXT files into R, but the separation between the
columns are made with different blank spaces, but each file use the
same separation. Example:
31 104 5 0 11RUA SAO
SEBASTIAO 25
BAIRRO FILETO
01
2008 Jul 07
0
HAML and nestings
I have this partial:
1 - bairros = bairros_select
2 - selected_id ||= nil
3 - if bairros.any?
4 - cid = nil
5 = select_tag :imovel, :bairro_id do
6 - for b in bairros
7 - sel = b.id == selected_id ? {:selected => true} : {}
8 - if cid != b.cidade_id
9 %optgroup= b.cidade.cidade
10 - cid = b.cidade_id
11 %option{sel, :value =>
2007 Sep 05
8
Hi..Guys new plugin again
Hi..
Guys new plugin again
Foreign Key Associations is a plugin that automatically creates
associations based on foreign-keys. The associations are created at
runtime-ie. as your ActiveRecord models are loaded-so they will always
be up-to-date.
For example, given a foreign-key from a customer_id column in an
orders table to an id column in a customers table, the plugin
creates:
2003 Mar 22
0
VIAGEM DANÇANTE AO RIO DE JANEIRO
TURISMO & EVENTOS
Luiz Guilherme 3031-7374 e Marcio Sorriso 9887-9141 S?o Paulo -SP
Em abril, M?rcio Sorriso e Luiz Guilherme promover?o uma inesquec?vel
viagem ? cidade maravilhosa. Ser? mais uma oportunidade para voc?
divertir-se conhecer ou rever lugares maravilhosos, fazer novos amigos e ?
claro, dan?ar e dan?ar... Muito! Voc? n?o pode deixar de participar. Leia
a
2014 Nov 25
1
Test
Sds,
Paulo Henrique Cardoso
Administrador de Redes - T.I.
NHS Sistemas Eletr?nicos Ltda
Av. Juscelino Kubitschek de Oliveira, 5270
Cidade Industrial, Curitiba - PR
Fone/Fax: (41) 2141-9246/9247
www.nhs.com.br
IMPORTANTE:
Esta mensagem, incluindo quaisquer anexos, ? endere?ada exclusivamente ao seu destinat?rio e poder? conter informa??es confidenciais. A revis?o, distribui??o,
2008 Jul 05
4
one db - many rails projects -> many schema_migrations table
Hi all!
How can I change the name of the schema_migrations table? I have to do
this because I can only use one database but want to have several rails
projects.
I hope this is possible at all.
greets
flo schaf
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2011 Jan 27
0
Curso R Gratis (Universidad Andres Bello)
Queridos
R-usuarios!
Con mis colegas estamos creando un curso básico de nuestra
espectacular herramienta R. Nos hemos dado cuenta que muchas personas usan
software comercial y pensamos que sería una buena oportunidad para dar un curso
gratis acerca de R. Por otro lado, puede ser una buena oportunidad para crear
un grupo de usuarios activos de R aquí en Chile.
Actualmente, estamos invitando
2011 Jan 28
0
Free R Course Chile / Curso Gratis R (Universidad Andres Bello)
(English version below)
Queridos R-usuarios!
Con mis colegas estamos creando un curso básico de nuestra espectacular herramienta R. Nos hemos dado cuenta que muchas personas usan software comercial y pensamos que sería una buena oportunidad para dar un curso gratis acerca de R. Por otro lado, puede ser una buena oportunidad para crear un grupo de usuarios activos de R aquí en Chile.
2006 May 08
4
Tables names with model classes in seperate modules
I have a module that deals with content pages and categories in my
application so create following tables:
content_pages
content_categories
Obviously I need a Page and Category module to map to these tables, but
in order to avoid conflicts with other Category classes, i declare my
model classes like this:
Content::Page
Content::Category
Now, that''s all fine - except that my models
2012 May 28
4
How to load a selection list into the method new of a controller?
Hi friends!
I''m relatively new with Rails and I''m struggling for a long time with this
problem (it should have a pattern solution but until now I didn''t find it):
I have the following models: Institution, City, State and Country.
class Country < ActiveRecord::Base
has_many :states
has_many :cities, :through => :states
end
# == Schema Information
# Table
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon,
I''ve two quick questions for the Ruby/Rails community.
1) Do you use Linux for Ruby or Rails development?
2) If you use Linux, which distro do you normally use to develop?
Thank you for your input. :-)
--
Posted via http://www.ruby-forum.com/.