similar to: config.cache_store file path ignored?

Displaying 20 results from an estimated 70000 matches similar to: "config.cache_store file path ignored?"

2010 Nov 12
0
wrong number of arguments (0 for 1) (ArgumentError)
if i run rails serve i am fa C:\forex>rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/cache/file_store.rb:17:in `initialize'': wrong number of arguments (0 for 1) (ArgumentError)
2009 Jun 11
1
fragment caching file_store problems
Hello, I''m having problems on both my production and development servers with fragment caching. Every time I try to cache something using <% cache do %>, I get the following error: Couldn''t create cache directory: views/0.0.0.0:3000/jobs/106/questions/ 174 (wrong number of arguments (2 for 1)) but strangely, all of the directories apart from the last one are created.
2011 Apr 27
3
Can't configure cach_store in an initializer
I''m trying to use redis-store as my cache_store. I also have an app_confirg.rb initalizer which loads a yaml file for config settings. In my redis.rb initializer I have: MyApp::Application.config.cache_store = :redis_store, APP_CONFIG[''redis''] However, this doesn''t appear to work. If I do Rails.cache in my rails console I can clearly see it''s using
2010 Nov 18
0
Rails 3 upgrade - Custom cache store
I had a custom cache store set up in Rails 2.3. I''m in the process of upgrading to rails 3, but have run into a snag. Before I had all the setting in my environment.rb. It would basically load a yaml file with my server settings, and set up the store via config.cache_store. It seemed like the correct place for this in Rails 3 was as an initializer. So I did basically the same thing,
2012 Jan 25
0
Can't Get Caching to Work with Heroku and Memcache
I''m on Heroku and trying to implement caching in my Rails app, but I''m running into some problems that I don''t understand. I thought it would be easy after reading the Rails Guide and Heroku docs on caching strategies, but apparently doing something wrong. Issue 1: view of action doesn''t seem to expire Issue 2: when I use :layout => false, both my admin
2010 Mar 31
1
Custom cache store – possible?
Hi. I want to define my own cache store but I have no idea how to use in my app. Rails initializer reads environment config before loading app initializers and plugins. So, i cant write: config.cache_store = :my_beautiful_cache_store, ''localhost:641'' even if I put ActiveSupport::Cache::MyBeautifulCacheStore in config/ initializers. Now i think it is impossible to define my
2014 Jun 11
0
my webpage does not send emails confimation/notification
Hello everybody I have a problem with my inquireis, when I want to contact and I send the message, I must receive two emails one of confirmation (client) and other of notification (admin of the web page) but it does not send. The webpage work in production environment. When I watch the log (production.log) I seed this: > > There was an error delivering an inquiry confirmation: > 503
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
Hello, In production environment, I have this error ActionView::Template::Error Not a directory vendor/assets/javascripts/holder.js when in my template I have this line <%= image_tag "holder.js/150x200" %> My production.rb is : Libapp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded
2011 Nov 05
3
How to get Rails 3.1's Cache store (FileStore) to work with Rack::Sendfile
Hey - I need your input regarding a problem I''ve come across. I''ll first explain what the problem is, and what I think the solution is. If I misunderstood how things work, please let me know. # The problem I''m using Dragonfly (on-the-fly file processing) to serve images. Dragonfly uses Rack::Cache to cache the processed images so subsequent requests are served by
2010 May 29
0
User Error during memcached integration
Hello, I hope all is well. I am hoping someone can help me with a problem that I am certain is user error? The configuration details below work in all my other environments including integration, development and qa. However, the production servers give the following error: unable to find server during initialization. When I telnet to the memcached box from the server having the problem and run
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not being served. Any clues? This is the site link: http://test.kopy.com.br/home/index GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found) index:11 GET http://ads.panoramtech.net/loader.js?client=tac net::ERR_BLOCKED_BY_CLIENT rev.js:4 Error in event handler for (unknown): Cannot read property 'state' of
2006 Mar 29
2
Fragment Cache Wackiness
I can''t seem to get the fragment cache to use :file_store. I''d really appreciate it if someone could point me in the right direction. Rails 1.1 final, FreeBSD Observe: In environment.rb AND production.rb (for good measure, DRY be damned): ActionController::Base.fragment_cache_store = :file_store, "/www/apps/localfeeds/directory/tmp/fragmentcache/" At the console
2012 Apr 30
0
data file path in a gem
I am trying to access a data list from inside a gem code, how should I set the file path .. here is my gem file structure : >> my_extension --- my_extension.gemspec --- Gemfile --- Gemfile.lock >> lib >> my_extension --- code_a.rb --- code_b.rb --- code_c.rb ---
2010 Feb 24
0
Attachment fu file path
Hi I am using attachment fu plugin for uploading data. say : User has_many :photos I wanted to save the uploaded photo in the path as follows. /files/<user_id>/photos/1.jpg - while uploading first photo /files/<user_id>/photos/2.jpg - while uploading second photo 1) Is there any way to make a folder name with user id ? 2) Is there any way to rename the file in sequential order ?
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi, I am trying to do fragment caching using :mem_cache_store. However, when I compare it to fragment caching using :file_store, it seems to be a lot slower. Here are the results: uncache Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB: 0.00017(0%) | 200 OK [ http://127.0.0.1/] using file_store Completed in 0.00952 (105 reqs/sec) | Rendering: 0.00702 (73%) | DB: 0.00000(0%)
2010 Sep 07
0
numeric key in yam file to be used by config file
I am using a YAML file for my app config, loading it : ---- raw_config = File.read(RAILS_ROOT + "/config/app_config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys --- It''s running well as long as I use alpha keys development: seve: api_token: e09cba8653489749388797926512bb75 then APP_CONFIG[:seve]["api_token"] gives me
2011 Aug 11
1
How to secure file access using Carrierwave + S3 hosted on Heroku
My site is hosted on Heroku and I am using Carrierwave to upload files to Amazon. How can i restrict file access based on roles? Is this possible? Using Devise and CanCan. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2011 Aug 16
2
Mailer failure: ArgumentError: A sender (Return-Path, Sender or From) required to send a message
I have two mailer procedures in the same app and same mailer (Rails 3.1/1.9.2). The first one fails with the message below, the second works fine. Both these results are through irb. Anyone have an idea as to why? Also, in my application.rb I do have: ActionMailer::Base.default :from => "WaveLineup <system-+T6PWOEcvEy41k5uCYKmRQ@public.gmane.org>" defined. FAILS def
2010 Jan 29
1
Rails 3 App generator - could not find source path
Could not find "README" in source paths. module Nifty module Generators class AppGenerator < Base def self.source_root @source_root ||= File.expand_path(File.join(File.dirname (__FILE__), ''templates'')) end def initialize(*args) super end def create_root_files # puts "Source path:
2011 Feb 15
5
Path and Url
Hello everyone, what''s the real difference between root_url and root_path in Rails, for example. Apparently both lead to the same route in the application. Thanks! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To