[Rails] create a model/migration from an object that is returned from a gem that i installed

2012-05-30 Thread eldorado554
I am using the fog gem. The fog gem has been added to my Gemfile I would like to store the Fog object in my own database/model/ migration. I tried to create the model like so, as I would usually create a model, but using the Fog data type: [tago@DevServer my]$ rails generate model fogaws fog

[Rails] Why I can't override attr_reader for simple_form?

2012-05-30 Thread Amit Ambardekar
I have simple problem with overriding attribute readers and seeing same changes appear on simple_form. I have a model and it has some attributes that I want to override with different readers. I did something like following class CustomerSupplierItem < ActiveRecord:Base # it has attribute ca

Re: [Rails] Can't get css to load in rails 3.2.3 development

2012-05-30 Thread Vell
On Tuesday, May 29, 2012 9:31:43 PM UTC-4, Vell wrote: > > > > On Tuesday, May 29, 2012 12:42:11 PM UTC-4, Vell wrote: >> >> >> >> On Saturday, May 26, 2012 5:33:00 PM UTC-4, Colin Law wrote: >>> >>> On 26 May 2012 22:18, Vell wrote: >>> > >>> > >>> > On Saturday, May 26, 2012 4:45:13 PM UTC-

[Rails] Re: my first Cucumber test

2012-05-30 Thread Lenart
I'd suggest you post the error itself. From what I can see it could be that you need to edit the step definition from "visit root" to "visit root_path". On Tuesday, May 29, 2012 2:58:48 PM UTC+1, Ruby-Forum.com User wrote: > > i whant to test that i have a homepage and that it says Welcome on it

[Rails] Re: warning: already initialized constant

2012-05-30 Thread Lenart
It might be that this file is somewhere in autoload path (/lib, etc.) and you're also manually requiring it by hand somewhere. On Wednesday, May 30, 2012 10:44:16 AM UTC+1, Gurdipe wrote: > > Hi All, > > The Linux box I was using to do my rails development had the hard disk > upgraded and restar

Re: [Rails] Re: Lectura de registros desde Rails

2012-05-30 Thread radhames brito
Eso por defecto no ocurre. Viste esa información en el log del server cuando este inicia? si puedes por favor postea tu Gemfile, eleminando cualquier dato importante primero claro -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] Re: Lectura de registros desde Rails

2012-05-30 Thread Rafael Magaña
Rails no lee registros de la DB cuando inicia, por qué piensas que lo hace? On Monday, May 28, 2012 8:36:52 AM UTC-5, Sandy Ramírez wrote: > > Al inicializar Rails en una aplicacion este recorre, cada registro dentro > de la base de datos?, si es asi como evitarlo? > When rails startup does it lo

Re: [Rails] warning: already initialized constant

2012-05-30 Thread Michael Pavling
On 30 May 2012 12:07, Gurdipe Dosanjh wrote: > I have checked and its not been called anywhere else, but may be im missing > something simple > > it always gives a warning on the last entry of the set of values  in > assigned to the constants I would recommend putting a breakpoint on the line tha

Re: [Rails] warning: already initialized constant

2012-05-30 Thread Gurdipe Dosanjh
hi Michael I have checked and its not been called anywhere else, but may be im missing something simple it always gives a warning on the last entry of the set of values in assigned to the constants gurdipe On 30 May 2012 10:51, Michael Pavling wrote: > On 30 May 2012 10:44, Gurdipe Dosanjh

Re: [Rails] warning: already initialized constant

2012-05-30 Thread Michael Pavling
On 30 May 2012 10:44, Gurdipe Dosanjh wrote: > Loading development environment (Rails 2.1.0) > /denorm_brag_report.rb:423: warning: already initialized constant > MAIN_CATEGORIES Does your code include the denorm_brag_report.rb file more than once? -- You received this message because you are s

[Rails] warning: already initialized constant

2012-05-30 Thread Gurdipe Dosanjh
Hi All, The Linux box I was using to do my rails development had the hard disk upgraded and restarted. Now I am getting the following warnings when I use script/console or script/server Loading development environment (Rails 2.1.0) /denorm_brag_report.rb:423: warning: already initialized const