Adding Row count and Record count as a value

254 views
Skip to first unread message

Kaustubh Naik

unread,
Mar 25, 2011, 3:57:21 AM3/25/11
to hobo...@googlegroups.com
Hi,
I am doing a bird data entry system for a local NGO here who works for monitoring birdlife. I have three models ie Bird, Location and Report. I want to add a row count and record count as value in the Report model.
Please help.

--
Kaustubh Naik
Goa-India


Matt Jones

unread,
Mar 25, 2011, 6:56:12 PM3/25/11
to hobo...@googlegroups.com

On Mar 25, 2011, at 3:57 AM, Kaustubh Naik wrote:

> Hi,
> I am doing a bird data entry system for a local NGO here who works for monitoring birdlife. I have three models ie Bird, Location and Report. I want to add a row count and record count as value in the Report model.
> Please help.

I'm not quite sure what you mean - row and record counts of what? It'll be a lot easier to help if we have a clearer idea of what your models are and how they're related.

--Matt Jones

Kaustubh Naik

unread,
Mar 27, 2011, 10:23:19 AM3/27/11
to hobo...@googlegroups.com
On Sat, Mar 26, 2011 at 4:26 AM, Matt Jones <al2...@gmail.com> wrote:
I'm not quite sure what you mean - row and record counts of what? It'll be a lot easier to help if we have a clearer idea of what your models are and how they're related.
Extremely sorry for the inadequate information provided. Here is what I want to do
I have three models namely Bird, Location and Report!

The report is model looks like this

class Report < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    Date    :date
    #Plumage :string
Plumage enum_string(:Breeding, :NonBreeding )
    #Weather :string
Weather enum_string(:Cloudy, :Sunny, :Humid)
    RAIndex :integer
    Time enum_string(:Dawn, :Morning, :Noon, :Evening, :Dusk, :Night)
    timestamps
  end
belongs_to :bird
belongs_to :location

The field RA Index is a value assigned with each bird specie. It is the ratio of number of reports in which 'X' bird is reported at 'P' location to the number total reports for that location. I need to calculate that Index.
Please guide me through.
 


--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Ankur

unread,
Mar 28, 2011, 12:23:20 PM3/28/11
to Hobo Users
Sounds like the ratio is not attached to a report, but rather is a
separate calculation attached to a bird , location and report.

My initial idea would be to have it purely dynamic. Make a library
which would calculate this based on each display. Then you can cache
it so it only gets calculated once every 5 min (example). Because it
is different for each bird and each location, correct?

Otherwise you would have to store it in a separate Model.

Also are you doing Bird belongs to many locations through report?
Does that make sense? Even if you do that you don't want to store the
ratio with the report because it would be duplicated.

This image was very helpful for me.
http://dl.dropbox.com/u/766146/ruby-on-rails-data-relationships.png

I found it on the internet somewhere and copied to my dropbox.

Ankur


On Mar 27, 10:23 am, Kaustubh Naik <naikaust...@gmail.com> wrote:
> naikaust...@gmail.com

Kaustubh Naik

unread,
Mar 28, 2011, 1:06:38 PM3/28/11
to hobo...@googlegroups.com
On Mon, Mar 28, 2011 at 9:53 PM, Ankur <ankurs...@googlemail.com> wrote:
Otherwise you would have to store it in a separate Model.
Thinking of adopting the same approach. 
 

Also are you doing Bird belongs to many locations through report?
Does that make sense?  Even if you do that you don't want to store the
ratio with the report because it would be duplicated.
I have not defined the relationship that way. Will go with creating a separate model for the ratio. But than, how do we get the report data in the ratio model (please excuse me I am an absolute RoR beginner). 



--
Kaustubh Naik
Goa-India


Bryan Larsen

unread,
Mar 28, 2011, 3:00:32 PM3/28/11
to hobo...@googlegroups.com
AFAICT, this is what you're looking for.

class Location
...
has_many :birds, :through => :reports
has_many :reports

def ra_index(bird)
reports.bird_id_is(bird.id).size / reports.size
end
end

One note: you probably want to use all-lowercase names for your
field/column names. In Ruby, names that start with uppercase are used
for constants.

Bryan

> <mailto:hobo...@googlegroups.com>.


> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com

> <mailto:hobousers%2Bunsu...@googlegroups.com>.


> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>
>
>
> --
> Kaustubh Naik
> Goa-India
>
> http://geekblues.in/

> naika...@gmail.com <mailto:naika...@gmail.com>

Ankur

unread,
Mar 28, 2011, 9:21:50 PM3/28/11
to Hobo Users
Bryan

Yes that makes sense, I was thinking while typing, but you managed to
do the thinking before the typing ;-)

Is the id_is a hobo extension? I searched on the 'Miscellaneous Model
Extension' and in regular Rails api, but didn't see anything like
that. I have resorted to things like:

Report.find_all_by_bird_id_and_location_id(bird.id,self.id)

Ankur
> > naikaust...@gmail.com <mailto:naikaust...@gmail.com>

Bryan Larsen

unread,
Mar 28, 2011, 10:19:02 PM3/28/11
to hobo...@googlegroups.com

> Is the id_is a hobo extension? I searched on the 'Miscellaneous Model
> Extension' and in regular Rails api, but didn't see anything like
> that. I have resorted to things like:

That's one of Hobo's automatic scopes:

http://cookbook.hobocentral.net/manual/scopes

Bryan

Quiliro Ordóñez

unread,
Mar 29, 2011, 7:26:49 AM3/29/11
to hobo...@googlegroups.com
I am a hobo newbie. I installed 1.3.0.pre24. I have tryed several things
that work OK. But I am trying:
http://cookbook.hobocentral.net/recipes/64-single-table-inheritance-with-children
and at the end, when it's time for migration I get this error. I assume
the problem is with agent.rb but I cheched carefully and cannot find the
mistake. Would someone explain what happens please?

$ hobo generate migration
Hobo Command Line Interface 1.3.0.pre24
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:492:in
`load_missing_constant': Expected
/home/cao/Escritorio/sti-with-children/app/models/agent.rb to define
Agent (LoadError)
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:503:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:124:in
`block in constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:528:in
`block in <class:Reference>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`yield'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`default'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`get'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:551:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1190:in
`block in compute_type'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1188:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1188:in
`compute_type'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/reflection.rb:162:in
`klass'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/extensions/active_record/associations/reflection.rb:16:in
`klass_with_create_polymorphic_class'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/model.rb:180:in
`belongs_to_with_test_methods'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo_fields-1.3.0.pre24/lib/hobo_fields/model.rb:93:in
`belongs_to_with_field_declarations'
from
/home/cao/Escritorio/sti-with-children/app/models/phone_number.rb:12:in
`<class:PhoneNumber>'
from
/home/cao/Escritorio/sti-with-children/app/models/phone_number.rb:1:in
`<top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`block in load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:453:in
`load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:340:in
`require_or_load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:491:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:503:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:124:in
`block in constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:528:in
`block in <class:Reference>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`yield'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`default'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:538:in
`get'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:551:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1190:in
`block in compute_type'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1188:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/base.rb:1188:in
`compute_type'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/reflection.rb:162:in
`klass'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/extensions/active_record/associations/reflection.rb:16:in
`klass_with_create_polymorphic_class'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/model/view_hints.rb:28:in
`block in <class:ViewHints>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/model/view_hints.rb:17:in
`instance_exec'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/model/view_hints.rb:17:in
`block in setter'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/model.rb:340:in
`children'
from
/home/cao/Escritorio/sti-with-children/app/models/profile.rb:15:in
`<class:Profile>'
from
/home/cao/Escritorio/sti-with-children/app/models/profile.rb:1:in `<top
(required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`block in load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:453:in
`load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:340:in
`require_or_load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:491:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/home/cao/Escritorio/sti-with-children/app/models/agent.rb:1:in `<top
(required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`block in load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:453:in
`load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:340:in
`require_or_load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:491:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:124:in
`block in constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/core_ext/string/inflections.rb:43:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:86:in
`model'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:299:in
`available_auto_write_actions'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:287:in
`available_auto_actions'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:128:in
`auto_actions'
from
/home/cao/Escritorio/sti-with-children/app/controllers/agents_controller.rb:5:in
`<class:AgentsController>'
from
/home/cao/Escritorio/sti-with-children/app/controllers/agents_controller.rb:1:in
`<top (required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:454:in
`block in load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:453:in
`load_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:340:in
`require_or_load'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:491:in
`load_missing_constant'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
`block in const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
`const_missing'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:124:in
`block in constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:123:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/core_ext/string/inflections.rb:43:in
`constantize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:61:in
`block in all_controllers'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:57:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/controller/model.rb:57:in
`all_controllers'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/generators/hobo/routes/routes_generator.rb:32:in
`controllers_for'
from (erb):11:in `block in template'
from (erb):6:in `each'
from (erb):6:in `template'
from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `eval'
from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `result'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:111:in
`block in template'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in
`call'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in
`render'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:47:in
`identical?'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:73:in
`on_conflict_behavior'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:111:in
`invoke_with_conflict_check'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:61:in
`invoke!'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/create_file.rb:26:in
`create_file'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:110:in
`template'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/generators/hobo/routes/routes_generator.rb:21:in
`generate_routes'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
`invoke_task'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
`block in invoke_all'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
`map'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
`invoke_all'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:226:in
`dispatch'
from
/usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/generators.rb:163:in
`invoke'
from
/usr/local/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.pre24/lib/hobo/engine.rb:63:in
`block (2 levels) in <class:Engine>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/callbacks.rb:424:in
`_run_prepare_callbacks'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/callbacks.rb:40:in
`initialize'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:33:in
`new'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:33:in
`build'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:79:in
`block in build'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:79:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:79:in
`inject'
from
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/stack.rb:79:in
`build'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:162:in
`app'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:35:in
`block in <module:Finisher>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in
`instance_exec'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in
`run'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in
`block in run_initializers'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in
`each'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in
`run_initializers'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in
`initialize!'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in
`method_missing'
from
/home/cao/Escritorio/sti-with-children/config/environment.rb:5:in `<top
(required)>'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`block in require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`block in load_dependency'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:103:in
`require_environment!'
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:16:in
`<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>
--
Quiliro Ord��ez
09 821 8696
02 340 1517

Domizio Demichelis

unread,
Mar 29, 2011, 7:35:14 AM3/29/11
to hobo...@googlegroups.com
Why did you install that OLD pre? Uninstall it and install the fresh pre30.

ciao
dd

Quiliro Ordóñez

09 821 8696
02 340 1517

Quiliro Ordóñez

unread,
Mar 29, 2011, 7:37:41 AM3/29/11
to hobo...@googlegroups.com
El 29/03/11 06:35, Domizio Demichelis escribi�:

> Why did you install that OLD pre? Uninstall it and install the fresh
> pre30.

I had installed it long ago. How to I update it?
--
Quiliro Ord��ez

Reply all
Reply to author
Forward
0 new messages