similar to: acts_as_readonlyable in production?

Displaying 20 results from an estimated 100000 matches similar to: "acts_as_readonlyable in production?"

2007 Sep 21
1
mysql-proxy vs. acts_as_readonlyable vs. ?
I have replicated my db (mysql) and have hit roadblocks with both mysql-proxy and with acts_as_readonlyable . Firstly, is there something else I should be using? What would be the advantages of mysql-proxy over in-rails solutions? One is that it keeps the rails config and code simpler, puts the db redirection (kinda) where it should be, at the (kinda) db layer of the architecture. Has anyone
2007 Apr 28
2
SQLRelay adapter for Rails?
I would like to use SQLRelay for database connection pooling and query- based routing with a Rails application that I am just about done with. It is my first Rails project, and I thought it might be wise to get some feedback on this before I get too far in coding it. >From what I can tell, I am going to have to write a connection adapter for ActiveRecord if I want to use SQLRelay (http://
2009 May 28
0
Re: ActiveResource as API test rig? Two jsons?
bump... On Wed, May 20, 2009 at 3:57 PM, Marc Byrd <dr.marc.byrd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > I''m using ActiveResource as an API test rig for an API we''re developing for > our PHP app - the goal being to validate that we''re following some > externally validated conventions for ReSTful API and that we can support at >
2006 Dec 29
1
development, test, production ... how about stage
I find a "mode" is missing when I iterate on my rails apps... Specifically, right before production, I want to run on my development machine as if I am in production mode. It mainly boils down to this... - I want the production setup (caching, error handling, etc) - but I want my local machine DB (password, socket, etc) So I have been using an additional mode that I call stage. - just
2009 Mar 15
3
can't run production console: custom_require.rb:27: [BUG] terminated node (0x8117eb8)
Suddenly I can''t run the production console anymore for my app :(. Here''s the error I get: 08:12pm fggedsaa:~/rails/production/app>./script/console production Loading production environment (Rails 2.1.1) /opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] terminated node (0x8117eb8) ruby 1.8.6 (2007-03-13) [i386-solaris2.11] Version info: 8:24pm
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a page with a serialized attribute: ActiveRecord::SerializationTypeMismatch (answers_container was supposed to be a Array, but was a NilClass): /vendor/rails/activerecord/lib/active_record/base.rb:1964:in `unserialize_attribute'' In development, it works fine. In fact, if I set to false config.cache_classes in
2007 Aug 30
2
flash[:notice] as coach content...
Hi, I would like to use flash[:notice] to display coach content, e.g. "It''s generally a bad idea to do [whatever you just did]. Click here to find out why" - which goes to a more complete coaching page on that topic. My questions are: 1) Does anyone know of nice snippets for doing that (e.g. script.aculo.usfade in, fade out), and 2) It seems the (very plain) approach
2009 Apr 21
3
attachment_fu giving problem on production
Hello friends, I have configured attachment_f. It''s working fine on Local(development) system but giving problem on production. Basically on production the attachment_fu is not able to generate thumbnail image it saving the original size image. Below is the configuration. has_attachment :content_type => :image, :storage => :file_system, :max_size
2008 Oct 07
7
Rails production version not accessible from other machines
Hi, I just deployed my first rails application in production mode using Capistrano and mongrel clusters. Here are the lines in my mongrel_cluster.yml file. cwd: /myrailsdeploymath/current log_file: log/mongrel.log port: "8000" environment: production address: myserver.mydomain.org id_file: tmp/pids/mongrel.pid servers: 3 My development and production machine are the same. When I run
2009 Jan 12
5
Restful Authentication Uninitialized Constant in Production...
rake db:migrate RAILS_ENV=production rake aborted! uninitialized constant User::Authentication The preceding I encounter when attempting to migrate to the production database. My google powers have escaped me. Everywhere says Restful Authentication is missing in the production server. However, to validate this, I attempted this on the same server as the development, which works. So, what
2007 Apr 26
1
eager loading not working in production mode
i have an eager load query as such: @groups = ReviewQuestionGroup.find(:all, :conditions => ["review_category_id = ?", @review.category.id], :order => ''review_question_groups.position, review_questions.position'', :include => :questions) in dev mode, this works fine... i get results like @groups[0].questions.length = 13. in production, i
2007 Mar 22
6
Anyone using Goldberg for production sites?
Just starting to look at Goldberg and I like what I see so far. However, there''s quite a bit in there. Anyone using Goldberg for production sites? How is the security, flexibility, etc? Thanks for any input you can provide! Jake --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2008 Apr 11
1
database adaptor password in production.log
So, as I''m working on migrating my app from Rails 1.2.1 to Rails 1.2.6, suddenly my database adaptor password is showing up in production log on startup. This could be because use " ActiveRecord::Base.allow_concurrency = true" (I know, nobody else does and you''ll tell me not to do it. But I''ve investigated it and it''s working for me, that''s
2007 Jan 26
2
ActiveRecord: Reading MySQL views
My production environment is actually Oracle, in which case if I say: set_table_name "v_table" It will treat it as a readonly table. However, doing the same under MySQL throws an ActiveRecord::StatementInvalid error, saying that the table db.view doesn''t exist. Is there a way to get around this? I am using MySQL to test some new code I am working on, and wouldn''t
2008 Apr 22
2
Custom Mysql queries slower than ActiveRecord in production
I have been working on optimizing the performance of a Rails app by rewriting the AR record methods into custom sql queries. What I did is that the result from the query is not instantiated as an object, which is supposed to be too time consuming. Here are the performance difference between using default AR methods and its custom equivalent. The number of requests per second was read from the log
2008 Jun 13
1
TypeError (can't modify frozen hash) - Production Mode Only
Well, I''ve been testing out my code in production mode, in anticipation of being able to show off my site soon. Unfortunately, all is not going as expected. Production mode... well, its behaving differently than development did. I''ve already had login validation issues, and now it seems that my PM system is broken. If a user enters a non-existent username as a recipient of a
2008 Sep 18
2
change_table is not working on production server
Hi, I have added to my migration a change_table action. It works fine on my local dev machine, but on the production server the migration does not happen although the schema.rb file gets correctly updated. I am running Rails 2.1.1 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2008 Oct 10
3
Rails does not see installed gem in production.
Everything works like a charm locally, but running in production (Dreamhost shared with Passenger if it matters), "These gems that this application depends on are missing \n -rmagick" Rmagick is installed on dreamhost, but I have also copied the gem into the vendor directory, so it''s not even found within it''s local files. I''m using config.gem
2008 Jun 03
1
Filter email form production-log?
Is it possible to filter the generated emails from the production-log? I''d like to remove them there, since there is some private-info in them... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Jun 12
0
Log level to debug in production?
I wanted to check how the sql queries looked like in production mode. Launched the app in prod mode with script/server after I set config.log_level = :debug in connfig/environments/production.rb. For some reason, the production.log did not include any queries, just information about the requests. Does that mean that rails magically caches everything in my database upon initialization (right..),