similar to: hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)

Displaying 20 results from an estimated 700 matches similar to: "hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)"

2010 Jul 10
0
`method_missing': undefined method `i18n' for #<Rails::Railtie::Configuration:0x000001010fce98>
I have recently upgraqded to Ruby 1.9.2-rc1 and reinstalled rails 3 beta 4 with all the dependencies. I have run bundle install in my rails project. Now I am trying to run some tests... My test_helper.rb file looks like this: # test_helper.rb require ''rubygems'' require ''test/unit'' require ''rails/all'' $ gem list i18n (0.4.1, 0.3.7)
2011 May 02
0
Change from 3.0.6 => Rails 3.0.7 "no such file to load -- action_mailer/railtie"
In my application.rb, I have this: #require "rails/all" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "active_model/railtie" (I didn''t want ActiveRecord) This worked fine up to 3.0.6, but now fails with: /Users/jeffdeville/Documents/code/ruby/wg/config/application.rb:6:in
2011 May 29
4
Model load time
Hi, I''m getting a little confused how Rails handles loading models. I''m on development mode, using Rails 3.1.0.rc1 on ruby 1.8.7 My application models are: Curso Legislacao Usuario And I have another model that is loaded from a gem Im trying to build: Cidade My gem is actually a simple engine: require ''active_record'' require
2011 Jun 22
0
Railtie initializer and generators
I am creating a gem for a Rails project and I got some troubles to understand how generators and initializers work. I would like to initialize my module loading some stuff from the database from models related to tables my gem should create with a migration file. Problem is : if I create a Railtie and put it my gem lib directory, when I try to run my generator (to create the migration template
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
2013 Apr 20
0
Coffee-rails beta railtie dependency
http://rubygems.org/gems/coffee-rails -- has been updated to 4.0.0, but has a Rails (Railtie) dependency to 4.0.0.beta1. Anyone know why they''re moving to 4 prior to Rails going 4.0.0? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
This patch updates dbomatic, taskomatic and host-register to use the new C++ wrapped ruby QMF bindings. It also fixes a couple of bugs along the way including the 0 cpu bug for host-register. This is a compilation of work done by myself and Arjun Roy. Signed-off-by: Ian Main <imain at redhat.com> --- src/db-omatic/db_omatic.rb | 111 ++++++-------
2009 Nov 13
1
[PATCH server] Replace the occurence of the type @qmfc.object(Qmf::Query.new(:class => "xxx", 'key' => search_key)) for @qmfc.object(Qmf::Query.new(:class => "xxx"), 'key' => search_key) else the search on the key is not functionnal.
This fix db-omatic that cannot recover the node on wich the vm run for example. We have not investigate far away but that can be due to a change on the ruby-qmf API. Signed-off-by: Michel Loiseleur <mloiseleur at linagora.com> --- src/db-omatic/db_omatic.rb | 10 ++++++---- src/libvirt-list.rb | 6 +++--- src/matahari-list.rb | 4 ++-- 3 files changed, 11
2009 Jul 21
1
[PATCH server] Fixed db-omatic so it doesn't segfault because of newer qmf api.
--- src/db-omatic/db_omatic.rb | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb index 155ff5e..b5b7b81 100755 --- a/src/db-omatic/db_omatic.rb +++ b/src/db-omatic/db_omatic.rb @@ -270,10 +270,10 @@ class DbOmatic < Qpid::Qmf::Console end def object_props(broker, obj) - target =
2009 Aug 12
5
Challenge for object_id, Garbage Value
I am facing strange problem. I have an object @part=MainPart.find(:all) 1. @part.each_with_index do |mainpart,index| 2. <p><%= mainpart.object_id%></p> 3. end Here problem is that object_id is reserved for rails. Here object_id field in my table . Now i want to get value <%= mainpart.object_id%> is giving GARBAGE VALUE. Is there any solution apart from
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
This is the new ovirt agent that implements the QMF API. This is just its humble beginnings. The goal was to implement the create VM method on VMs but it turns out we need to specify the VM pool in order to do that. This is currently hardcoded to '5' and works locally but would likely not work elsewhere. What does work well is listing/querying of existing VMs. There is still lots of
2011 Aug 25
2
Problem with rails generaterspec:install, Error-Message: no such file to load, sprockets-railtie (loadError)
Hey guys, I''m a RoR-Beginner and I started learning it with the RoR-Tutorial. Actually I''m at this chapter (http://ruby.railstutorial.org/chapters/ static-pages#top) and try to install rspec. But everytime when I try to use "rails g rspec:install" I get this error message: C:\Sites\rails\rails_projects\sample_appp>rails g rspec:install
2011 Mar 15
8
Problems with Object#id deprecation
Hello everyone, in a test helper in my app I call category.id that gets the id of category in the database. However, when running RSpec I get the following error: As a parla customer /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning: Object#id will be deprecated; use Object#object_id /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning: Object#id
2009 Jul 15
1
[PATCH] Rename qmf-libvirt-example to libvirt-list.rb
This patch renames qmf-libvirt-example to libvirt-list and makes it not repeat. Useful for debugging. File mode is also now 755. Signed-off-by: Ian Main <imain at redhat.com> --- src/libvirt-list.rb | 65 +++++++++++++++++++++++++++++++++++++++ src/qmf-libvirt-example.rb | 72 -------------------------------------------- 2 files changed, 65 insertions(+), 72 deletions(-)
2010 Aug 29
4
Wrong class being returned in association
I''m using Rails 3.0.0rc and have the following models: class User  has_many :readings  has_many :conversations, :through=>:readings end class Reading  belongs_to :user  belongs_to :conversation end class Conversation  has_many :readings  has_many :users, :through=>:readings end and this controller code: class ConversationsController  def show    @user =
2007 May 01
0
Joining tables and query design advice
Hi everyone, My problem involves two tables, Objects and Attributes: Objects ------------- |ID |Name ------------- Attributes ------------- |ID |Object_ID (foreign key references Objects.id) |Value ------------- I want to be able to search for Objects by (potentially many) combinations of Attribute values. To show all of the unique Objects that have Attributes ''green'' AND
2009 Jul 23
0
[PATCH server] Add network QMF apis.
From: Scott Seago <sseago at redhat.com> This adds some of the network API stuff to ovirt-agent. It's still not complete but what is there is functional. Signed-off-by: Ian Main <imain at redhat.com> --- src/ovirt-agent/lib/ovirt.rb | 3 + .../ovirt/controllers/hardwarepool_controller.rb | 2 +- .../lib/ovirt/controllers/network_controller.rb |
2006 Jul 15
2
FieldQuery not returning anything
Hey .. The QueryParser RDoc page explains to me on how to search for a specific value in a specific field. This is not working the way i thought it should be, what am i doing wrong? Here''s an example .. I''m storing model data in the index like this: doc << Field.new( "object_id", object.id, Field::Store::YES) doc << Field.new( "type",
2010 Nov 12
3
Updating oVirt Server to the latest Matahari 0.4.0 schema
Hi all, I looked at patching oVirt Server to work with the latest Matahari schema, from Matahari's 'next' branch, version 0.4.0. ovirt-server depends on matahari version 0.0.5, which is currently latest in Fedora, and it is used during Node registration, to enumerate hardware information. Usage extracted from src/host-browser/host-register.rb is as follows: host_list =
2006 Nov 20
1
undefined method `stringify_keys!' for "4":String - Meaning of this?
Hi, I have the following on a view <% for evaluation in @evaluations %> <td><%=h evaluation[0].name %></td> <td><%=evaluation[1].object_id %></td> <td><%= link_to( "Start", :action =>''evaluatie'', :id => evaluation[1].object_id) %></td> <%end%> When I click on the link, I can see that