Displaying 20 results from an estimated 30000 matches similar to: "Rails 2.1 and default setting of Partial updates"
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
src/app/controllers/application_controller.rb | 2 +-
src/config/environment.rb | 2 +-
src/config/initializers/new_rails_defaults.rb | 6 +++++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb
2008 Jun 02
3
Undefined method `store_full_sti_class=' for ActiveRecord::Base:Class (NoMethodError)
Hi everyone,
I created a new demo app with ''rails demo'' and proceeded to try and
launch the server with ''ruby scripts/server''.
I get the following stack:
C:\railsProj\demo>ruby script/server
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to
2009 Nov 24
2
Deploying Error: undefined method 'generate_best_match='
Hey guys,
I''m quite new to rails and experiencing some problems with the
deployment of my application to a web server.
I am using github, can connect to the server, "cap deploy:check"
and :setup run fine, but when I want to use "deploy:cold" or migrate
my database (rake RAILS_ENV=production db:migrate) I get this error:
rake aborted!
undefined method
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
2009 Aug 15
4
Isn't there any performance issue when saving serialized attributes every time?
In edge rails, serialized attributes are saved every time no matter
they are changed or not:
def update_with_dirty
if partial_updates?
# Serialized attributes should always be written in case
they''ve been
# changed in place.
update_without_dirty(changed | (attributes.keys &
self.class.serialized_attributes.keys))
else
2009 Feb 20
6
rails 2.2.2 does not work with ruby 1.9.1
Hi everyone! I''ve installed new Ruby 1.9.1 from sources
(http://www.ruby-lang.org/en/), then "gem install rails", everything was
ok during installation, all tests ("make test") were ok too.
After all, i wanted to create my new RoR project, but I could not start
it.
Plz help me
Here is my terminal:
[renat@localhost rails]$ rails mysite
create
create
2008 Jul 07
0
ActiveRecord in Rails 2.1.0 misbehaving for Aggregate Attr.
I am not sure if this is a bug in ActiveRecord or is this the intended
behavior. If it is then it does not make sense to me.
In a nutshell: If you change an aggregate object attribute created via
composed_of method (see Agile Web Development - Second Edition Chapter
17 page 313 onwards) and then save the model, the change to the model
(composite attribute specifically) will not be saved UNLESS
2010 Jan 19
1
How I installed ovirt on fc 12
Hi,
I installed ovirt on fedora 12 (64 bits) successfully but I had to make some changes to make it work.
1. Installation from rpms builded from the lastest git version
2. Patch ace : missing backslashes in sed commands
vim /usr/share/ace/modules/ovirt/manifests/freeipa.pp
line 33 : '/\\[kdcdefaults\\]/a \\ kdc_ports = 88'
single_exec {"set_kdc_defaults":
2009 Dec 20
3
Noob Install Failed 0.0.0.0:3000
Happy Holidays,
I am new to RoR and have just run through the install, which well
seemed to be vaquely documented as some ''Do this'' type of thing on
the http://rubyonrails.org/download page.
download gem
setup.rb
gem install rails
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
and then ( drumroll ) ....
Follow the instructions on
2009 Sep 12
5
undefined method `^' for "d":String
Hi guys.
I''m a freshman on Rails (and Ruby) so I''m sorry if my question is
pretty basic, and possible has a vary basic answer. I tried to Google
this problem, but a couple of hour after and no solution found, I
decided to ask for help here.
I have installed ruby 1.9.1p243, Rails 2.3.4, Gem 1.3.5, SQLite
version 3.6.18 (I think this is all that it''s needed).
I´m reading
2007 Mar 01
4
Cookie based session management problems
Edge has a change in default behaviour where sessions are stored as
cookies instead of in the file system. This was a pleasant surprise when
I synced up, fired up my app, and nothing worked. Ah, life on the edge.
I''m sure I''m just missing something, but I can''t get sessions to survive
the first redirect. I added the following code to environment.rb, based
on
2008 Jun 24
1
Rails 'rake gems:install' error in windows
I am developing with rails at three platform
mac, windows, linux.
until Rails 2.1, we can describe gem dependencies in environment.rb.
( this one ~
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies
)
so I write environment.rb like below for using will_paginate
...
config.gem ''capistrano''
config.gem
2011 Apr 09
4
API documentation for find_in_batches
Hello,
At guides.rubyonrails.org I read about the possibilities of
find_in_batches. However I cannot find this option anywhere in the API
documentation (api.rubyonrails.org).
My question: where should I look for the documentation of this
command?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2009 Jul 28
1
Rails date conversion
The environment.rb file in a Rails 2.3.2 app says:
> Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
Auto-convert to this zone... when?
Also, what are the differences between these two statements?
config.time_zone = xxx
config.active_record.default_timezone = xxx
I ask these questions because I have a scenario whereby an AR-backed
object, when
2006 Jun 07
4
Edge rails and routes
I have a route that works under 1.1.2 but does not work under edge
rails.
route.wishlist ''wishlist/:id'',
:action => ''show_wishlist'',
:id => nil,
:requirements => {:id => /\d*/}
This worked great without an :id, but under edge rails when I call
wishlist_url with no parameters I get:
"Exception: can''t convert nil into
2009 May 07
2
Outputting strict JSON
Does any body know how I can output JSON so that instead of getting:
{booking: {id: 1, name: "foo"}
You get this instead:
{id: 1, name: "foo"}
Can''t find a solution for this at all
Thank you for any help.
2008 Apr 21
7
undefined method `partial_updates='
Hello
When I try the command:
rake db:migrate
I get the following:
rello@calimero:~/Sites/music_library/config$ rake db:migrate
(in /home/rello/Sites/music_library)
rake aborted!
undefined method `partial_updates='' for ActiveRecord::Base:Class
I googled with no results.
Anybody can help me?
Thankyou
--
Posted via http://www.ruby-forum.com/.
2008 Jun 09
3
Rails 2.1 and ddatetime_select
I''ve updated to 2.1 and am continuing to have issues with
datetime_select helpers which worked fine previously.
Example:
<% form_remote_tag(:url => { :controller => ''notes'',
:action
=> :add_booking_note_ajax,
:id => @booking},
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server
2020 Jun 30
0
[PATCH 01/18] tools: bpf: Use local copy of headers including uapi/linux/filter.h
Pulling header files directly out of the kernel sources for inclusion in
userspace programs is highly error prone, not least because it bypasses
the kbuild infrastructure entirely and so may end up referencing other
header files that have not been generated.
Subsequent patches will cause compiler.h to pull in the ungenerated
asm/rwonce.h file via filter.h, breaking the build for tools/bpf:
| $