similar to: Rails Config/Environment.rb

Displaying 20 results from an estimated 200000 matches similar to: "Rails Config/Environment.rb"

2006 Oct 30
2
RJB in Rails - setting JAVA_HOME correctly in environment.rb
All, I am attempting to use RJB (Java-Ruby Bridge - see: http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge) in my Rails app. The documentation says: "Both LD_LIBRARY_PATH and JAVA_HOME setting required in environment.rb file of RoR." However, it doesn''t say _how_ to set these variables in environment.rb. I''ve tried JAVA_HOME =
2008 Apr 15
2
environment.rb uninitialized constant when starting console
I have the following code in environment.rb: require File.join(File.dirname(__FILE__), ''boot'') raw_config = File.read(RAILS_ROOT + "/config/config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV] This works fine when running the server, but if I try and start a console I get: Loading development environment.
2008 Feb 05
0
adding observers outside environment.rb
I need to add an ActiveRecord observer and thought I should follow Rails 2 intent by not changing the base environment.rb I create a file config/initializers/observers.rb but don''t know what to add to it. I can''t add: config.active_record.observers = :user_observer Since "config" isn''t defined in the scope of the initializer file and I don''t know if
2007 Dec 28
1
WEBrick.. won't start and showing '/rails-2.0.2/lib/initializer.rb:159:in `require_frameworks': Could not find RubyGem jruby-openssl (>= 0.0.0) (RuntimeError)' errors
Hi WEBric won''t strat and showing the following errors:- => Booting WEBrick... /mnt/slash/home/akumar/jruby-1.1b1/lib/ruby/gems/1.8/gems/rails-2.0.2/ lib/initializer.rb:159:in `require_frameworks'': Could not find RubyGem jruby-openssl (>= 0.0.0) (RuntimeError) from /mnt/slash/home/akumar/jruby-1.1b1/lib/ruby/gems/1.8/gems/ rails-2.0.2/lib/initializer.rb:156:in
2007 May 05
0
multiple emai accounts w/ actionmailer & environment.rb
i have an app that i need to send emails to from different accounts on the same site... i.e we need contact-1SZh+JHLGKk@public.gmane.org for mail from the contact us page and we also need welcome-1SZh+JHLGKk@public.gmane.org for new users. how do i add multiple accounts to environment.rb to achieve this? or is there more to it than that? googles giving me nothing thanks -- Posted via
2009 Apr 18
0
A bug in sweeper.rb? [was: A frustrating and strange error when config.action_controller.perform_caching = true]
I fired up the debugger and watched the code happen tonight. The problem occurs if the config.action_controller.perform_caching = true in your environment. It''s not set to true in development but it is set to true in production and staging. The problem occurs not in my controllers but in sweeping.rb (part of rails). Rails calls this code for every controller which was instantiated in
2009 Jan 01
1
gem_original_require no such file to load -- /var/www/vhosts/gophotoswap.com/httpdocs/current/config/environment ( LoadError )
** Daemonized, any open files are closed. Look at /var/www/vhosts/ gophotoswap.com/httpdocs/shared/pids/mongrel.8000.pid and /var/www/ vhosts/gophotoswap.com/httpdocs/shared/log/mongrel.8000.log for info. ** Starting Mongrel listening at 127.0.0.1:8000 ** Initiating groups for "mongrel":"mongrel". ** Changing group to "mongrel". ** Changing user to
2008 Mar 10
0
Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and More (Part I)
Hello, I''ve published a Q&A in the Vancouver.rb series with Brock Whitten. Questions include: * How did you get started with Ruby on Rails? What makes Ruby on Rails a great choice for developing web applications/sites? * Can you tell us some challenges you''ve faced developing using Ruby on Rails? * Off the Rails - Can you tell us a little bit about Merb? How
2008 Sep 03
1
edge rails config.cache_classes = true breaks applications
when using current edge rails, i am getting trouble when using the production environment -- i tracked down the problem to the following line config.cache_classes = true if i disable the class caching, everything works just fine, when enabling the cache_classes, lots of errors get dropped -- see the output below: error #1:
2010 Sep 09
0
Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'
Hello, I''ve created a new Rails3 app and I''m using jQuery instead of prototype. Gemfile: gem ''jquery-rails'' in my config/application.rb I want do the following: config/application.rb if Rails.env.production? config.action_view.javascript_expansions[:defaults] = %w(jquery.min rails application) else
2008 Apr 29
1
Code in install.rb
Hi! If I add some code that uses ActiveRecord::Base.connection.execute method to create and remove a table respectively on each install and uninstall in the install.rb and uninstall.rb of a plugin that I am writing for myself, then would it work? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Mar 21
3
Error in new project boot.rb
When I create a new 2.0 project (rails project_name) Aptana shows what appears to me to be a valid error in boot.rb The line: if version = self.class.gem_version is an assignment Should this not read: if version == self.class.gem_version def load_rails_gem if version = self.class.gem_version gem ''rails'', version else gem
2008 Nov 26
5
Re: mysql.rb driver has been removed from Rails 2.2 ?
you can go to http://www.tmtm.org/en/ruby/mysql/ to download the tar file, and run the command below # ruby ./install.rb to install the mysql.rb -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2009 Feb 10
1
config.default_timezone vs. config.time_zone
In config/environment.rb are these statements equivalent? config.default_timezone = :utc config.time_zone = "UTC" If not, then how do they differ in effect? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working fine, but I recently was changing the account creation flow and needed to enable the UserObserver. I did so by including it in the environment.rb (config.active_record.observers = :user_observer) and Rails wouldn''t start. I got the following error; source/communitysites/vendor/rails/activerecord/lib/active_record/
2008 May 11
8
From "schema.rb" file to MySQL
Hello, I have write a schema.rb database such as this: ActiveRecord::Schema.define do create_table :arts do |t| t.string :name, :null => false, :limit => 45 end end This file is saved into test/db/schema.rb, and test/config/database.yml is correctly configured with "test_development" database created in a MySQL server. Could you help me to install the content of
2008 Jul 03
1
halp! howto config env.rb to look for rmagick gem?
hi, my rails application is having trouble locating rmagick to use with acts as attachment. my host put the gem in /home/myaccount/ruby/gems/gems/rmagick. how do i tell my rails app rmagick is located there? i tried require "/home/myaccount/ruby/gems/gems/rmagick", but that was crashing my rails app. and ENV[''GEM_PATH''] =
2007 Jun 14
2
Rails Development Environment and Reloading Models
Hi, By default, rails reloads all your models, while in development mode, with each new request. Is there anyway to specify that a given model, or models, should not be reloaded? This is specific to rails 1.2.3 Thanks, Steven --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2008 Jun 19
0
White-labeling - config.plugins-fu fails in Rails 2.1
What I''m trying to do is to enumerate all available plugins and then exclude specific plugins. This allows me to white-label my site and load the necessary brand via plugin specified in the environment at run-time. If there''s a better way to accomplish this in Rails 2.1, I''m all ears. The following approach in config/environment.rb for enumerating all the plugins to