similar to: undefined method `partial_updates='

Displaying 20 results from an estimated 800 matches similar to: "undefined method `partial_updates='"

2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my app expiring the same fragments and so have been trying to move all the expire_fragment calls into another model which the sweepers can then use but it''s not working as I''d hoped.. I''ve created a CacheDestroyer model and want to be able to call something to the effect of:
2008 Aug 31
9
assigning collection values and exceptions
hi everyone, I''ve this code in my Report model: has_many :report_reasons, :validate => true has_many :reasons, :through => :report_reasons #, :uniq => true # :accessible => true def reason_attributes=(reason_attributes) reasons.clear reason_attributes.uniq.each do |reason| reasons << Reason.find_or_create_by_content(reason) end end
2007 Mar 29
1
How to restart server programmatically?
I need to be able to restart my server based on a specific database change. I''ve been trying a call to system("script/process/reaper -a graceful -d dispatch.fcgi") but that raises a transaction error which rolls back the save. I wasn''t aware that after_save would rollback. That''s potentially useful but pretty much not right now. Here''s my code: def
2007 Mar 30
10
check_box_tag not passing 0 when unchecked?
Code: <%= check_box_tag("person[#{person.id}][is_approved]", 1, true) %> Rendered output: <input checked="checked" id="person[7][is_approved]" name="person[7][is_approved]" value="1" type="checkbox"> Problem: The value of "1" is always passed, even if the box is UNCHECKED. Suggestions? Thanks! -- Posted via
2008 Apr 01
12
undefined method `time_zone=' on Rails 2.0.2.9129 on Mac OS X
I just did a gem update and it broke my rails application. I had to go back to 2.0.2, because 2.0.2.9129 produces this error on Mac OS X Leopard: /Users/nicholas/RubyDev/dummy/config/environment.rb:38: undefined method `time_zone='' for #<Rails::Configuration:0x12c9f24> (NoMethodError) from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:47:in `run'' from
2008 Jul 01
14
rake aborted! Could not find table ...
I am getting a rake aborted error and I suspect that I am missing a package on my system since the app works for a friend on this computer. Here is the terminal output of the error: anita@anitas-computer:~/sandbox/shovell$ rake db:migrate (in /home/anita/sandbox/shovell) rake aborted! Could not find table ''stories'' (See full trace by running task with --trace)
2008 May 15
0
partial_updates feature in rails 2.1, failing to save because of validate_presence _of on other attributes in the table
I am trying to use the new partial_updates feature in rails 2.1, http://dev.rubyonrails.org/changeset/9157 but it is failing by trying to use all validations in the model instead of just the changed attributes. The model works as I can successfully .save(false) but if I try a regular .save I get an error saying that it could not save because of validations problems. I want to use this to get
2007 Dec 03
1
install and mysql issues
this is the versions i have installed: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Mark Johnson>ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] C:\Documents and Settings\Mark Johnson>rails -v Rails 1.2.6 C:\Documents and Settings\Mark Johnson>mysql -v ERROR 1045 (28000): Access denied for user
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn''t parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration'' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>''
2008 Apr 04
3
Weird Issue with Rails 2.0.2+???
Hi. I have kept my rails installation up to date. Now I have 2.0.2.9216 installed, including a fewl older ones, back to the original 2.0.2 release, However, I keep on getting weird problems with newly created projects on line #44 of config/environment.rb: config.time_zone = ''UTC'' So I did a "sudo gem cleanup" so that only 2.0.2-9216 remains, and created a new
2008 May 09
2
Getting an error when trying to create a new application..
I''m new to Ruby/Ruby on Rails. I''m trying to create an application and am getting this error: C:\InstantRails\rails_apps>rails demo C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:379:in `report_activate_ error'': RubyGem version error: activesupport(2.0.2 not = 2.0.2.9216) (Gem::LoadE rror) from
2010 Jan 20
4
Rake Aborted wont Migrate mysql
Hello all, I''ve been trying to get ruby on rails to work with my local install of mysql(its with wamp). Windows XP, Ruby 1.8.6, rails 2.3.5, rubygems 1.3.5, mysql 5.2 something I believe. I have ruby installed in: C:\Ruby and my mysql is installed in: C:\wamp\bin\mysql\mysql5.1.30\bin I''ve attempted to change my database.yml file to include the port 80, and port 3036, the
2014 Dec 01
3
Problem to import passdb in samba-tool
So, to provision samba4 i need of the samba-tool and it's not working.I use poudriere to generate packages on FreeBSD, and the recursive packages too. I'm trying to discovery what lib that samba-tool needs ti import the lib passdb and install it on the pfSense to make it work. > Date: Mon, 1 Dec 2014 10:23:23 +0000 > From: rowlandpenny at googlemail.com > To: samba at
2007 Dec 19
5
Installation Trouble
Hey all, I''m new to BDD and rspec, but I am very intrigued. I tried installing rspec and rspec_on_rails into my Rails app, but I am having some trouble. I chose to install both as plugins, as the documentation suggests. I checked out the CURRENT tag from svn, and copied the rspec and rspec_on_rails directories into my app''s vendor/plugins directory. Then I ran
2002 Mar 14
10
Samba and Windows XP
Hello, As we will migrate to Win XP Client, is there a site, document, etc ... where I can find information about tests and results of Win XP behaviour with SAMBA ? Thanks Orazio
2007 Dec 29
2
needs to have method `_load'
I''m getting an exception that I''m fairless clueless about. It occurs when I run a "create" action but neither my action or before filters are hit before this exception. I''m hoping someone can give me a clue. I suspect it has to do with marshalling objects in the session - maybe TzTime is not capable of being stored in the session. I hope that''s not the
2006 Oct 31
12
Moving page_cache_directory
Howdy. I''m working on a RoR CMS and need cached pages to all be in public/cache rather than public [in order to set svn:ignore on all the files properly]. I can get page_cache_directory set correctly and the pages are cached in the right place but Mongrel isn''t serving them because it''s only looking for them in public. During development I know I can set -r public/cache
2010 Aug 24
2
[LLVMdev] NumLoads/NumStores for linearscan?
On Sun, Aug 15, 2010 at 10:04 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote: > > On Aug 15, 2010, at 5:12 PM, Silvio Ricardo Cordeiro wrote: > > > Is there a way for me to collect statistics about the number of > loads/stores added by the "linearscan" register allocator (just like can be > done with the "local" allocator)? I still haven't
2011 Sep 29
2
Error installing Postfix - Mysql Support
Hello: Does anyone have any idea how resolve this error on my server to install postfix with mysql support? Dedicated Server with CentOS 5.7 64 Bit. I get this dependency information when trying to use the command yum-y install postfix Error: Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package 2:postfix-2.3.3-2.3.centos.mysql_pgsql.x86_64 (centosplus) Error: Missing
2014 Dec 01
2
Problem to import passdb in samba-tool
On 01/12/2014 14:17, Rowland Penny wrote: > On 01/12/14 11:55, Silvio Giunge Silva a.k.a kanazuchi wrote: >> So, >> to provision samba4 i need of the samba-tool and it's not working.I >> use poudriere to generate packages on FreeBSD, and the recursive >> packages too. >> I'm trying to discovery what lib that samba-tool needs ti import the >> lib