Displaying 20 results from an estimated 4000 matches similar to: "[R3B4] errors[:base] = appends, doesn't "set" - bug, feature, or "error 18"?"
2011 Mar 07
1
has_one :dependent => :destroy error (in `configure_dependency_for_has_one': compile error (SyntaxError))
Hi I''m getting the following error :
/Users/nikosd/.rvm/rubies/ree-1.8.7-2011.02/bin/ruby -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
/Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../bin/rake test
Testing started at 12:00 PM ...
(in /Users/nikosd/Work/.../.../...)
2011 Apr 12
0
RVM no such file to load
Hi,
I installed rvm recently I have a problem when I launch the rails 3
console ( or rails 3 app) it doen''t find my gems.
Here is my console:
Loading development environment (Rails 3.0.3)
ree-1.8.7-2011.03 :001 > require "rubygems"
=> nil
ree-1.8.7-2011.03 :002 > require "simple-rss"
LoadError: no such file to load -- simple-rss
from
2011 Mar 16
2
Increased memory and cpu usage when migrating from MRI 1.8.6 to REE 1.8.7
Hello,
We''ve been migrating our fairly large Rails 1.2 application from MRI 1.8.6
to REE 1.8.7, and in the process we''ve encountered some fairly odd behavior.
Namely, instead of the expected reduction in memory usage, we''re seeing an
increase in memory usage by around 40% and, along with it, an increase in
processor usage.
The stock 1.8.7 implementation performs
2010 Jul 28
3
Rails 3.0.0.rc // rails locales prevent app boot
Hi all,
I got the following error message when booting up my app (which works
fine with Rails 3.0.0.beta4) in Rails 3.0.0.rc;
activesupport-3.0.0.rc/lib/active_support/file_update_checker.rb:27:in
`stat'': can''t convert Array into String (TypeError)
When I put some debug code on that line I see the follwing array being
passed;
2010 Jul 27
0
Using an ActiveRecord model in routes.rb
Is it potentially dangerous to use an ActiveRecord model in routes.rb?
Here''s a line from our routes.rb file:
> map.resources :registrations, :requirements => { :id => User::USERNAME_REGEXP }
Registration#to_param returns the User''s username.
User::USERNAME_REGEXP is just a regex that matches one or more valid
username characters.
This route works as expected, but my
2011 Mar 24
0
How can I change from ruby/mysql to mysql/ruby module? [Broken PIPE problem..]
Due to the random broken pipe error in rails, (probably due to timed
out mysql connection) I am trying to use Mysql/ruby (which was coded
with C) instead of ruby/mysql (which was coded in Ruby).
Ruby/Mysql -> http://www.tmtm.org/en/ruby/mysql/README_en.html
Mysql/Ruby -> http://www.tmtm.org/ja/mysql/ruby/README.html
Related Article about Broken pipe problem ->
2012 Sep 25
3
Proposal for a new ActiveModel::Errors structure
There are few issues with the current ActiveModel::Errors class.
Firstly, when an error is added to ActiveModel::Errors class via #add
method
(https://github.com/rails/rails/blob/master/activemodel/lib/active_model/errors.rb#L294)
its translation is added. It should not be translated when being added, but
only when being read.
The second issue is a bit bigger. We''d like to create
2011 Feb 03
5
Ignore attr_accessible in seed file
Is there a way to tell Rails to ignore attr_accessible when seeding the
database and to allow mass assignment with create or new?
I know how to skip validations but do not find anything on mass
assignment...
--
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 Apr 24
4
Undefined method "redirect_to" in before_filter
Code sample:
class SomeController < ApplicationController
before_filter do |c|
add_crumb "Blah", "/blah" #breadcrumbs plugin
redirect_to :controller => "foo", :action => "bar" unless c.send
(:has_package?)
end
# Rest of the controller...
private
def has_package?
# A bunch of logic work to check to make sure
# somebody''s session contains
2011 Jun 11
15
after initialize blowing up---help
All,
Can anyone see what''s happening here?
================== migration =======================
class CreateGreetings < ActiveRecord::Migration
def self.up
create_table :greetings do |t|
t.string :greet
t.string :language
t.integer :count
t.timestamps
end
end
def self.down
drop_table :greetings
end
end
================== greeting.rb
2010 Nov 29
0
rake aborted! getaddrinfo: Name or service not known
I''m deploying new rails applications. Everything works well
except when it comes to the db migration:
* executing "cd /var/rails/benefits_test/releases/20101129190121 &&
/opt/ruby-enterprise-1.8.7-2010.02/bin/rake RAILS_ENV=production
db:util:migrate"
servers: ["ps-test-app1"]
[ps-test-app1] executing command
** [out :: ps-test-app1] (in
2010 Nov 30
2
db migration fails
I''m deploying new rails applications. Everything works well
except when it comes to the db migration:
* executing "cd /var/rails/benefits_test/releases/20101129190121 &&
/opt/ruby-enterprise-1.8.7-2010.02/bin/rake RAILS_ENV=production
db:util:migrate"
servers: ["ps-test-app1"]
[ps-test-app1] executing command
** [out :: ps-test-app1] (in
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
Hey guys,
As most of you know, Rails 3.1 introduces query caching for
ActiveRecord. Great change all-in-all, but for those of us with IT
department mandates for using MySQL (yeah, yeah, I know...), it''s kind
of a mixed bag.
I need to disable query caching in a project I''m building based on
3.1. I''ve tried a couple different approaches, both without any
success. I
2011 Jan 06
4
Not able to insert value in rails console
I am using authlogic for authentication in rails 3.0.3 with ruby 1.9.2
Using activerecord-sqlserver-adapter (3.0.5)
windows with sqlserver database
when i create user details in rails console, i am getting below error,
>User.create(:login=>''test'',:password=>''test123'',:password_confirmation=>''test123'')
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there,
I''m solving the problem about the plugin Magick. In my app in Gemfile
I''ve follwoing:
require ''rubygems''
require ''mongo''
require ''RMagick''
include Magick
and in a model Files:
class Files
def self.save(upload)
...
img = Magick::Image.read(''public/data/nature6.jpg'').first
end
end
2017 Jun 06
2
API REE
Hola Javier, Hola usuarios,
Muchas gracias por contestar y por el interés.
Sí es cierto que re-leyendo el correo la información es escasa?
Red Eléctrica, a través de ESIOS https://www.esios.ree.es , publica los datos del mercado eléctrico. Estos datos pueden descargarse a través de la web de la API: https://api.esios.ree.es
Si ponemos un ejemplo concreto, para saber los precios del
2011 Feb 05
3
ActiveModel::AttributeMethods limiting
In my attempt to add AM:Dirty to my model I realized that
AM#AttributeMethods is a bit imperfect. It''s impossible to generate
attribute methods step-by-step in DataMapper-like manner.
class Model
include ActiveModel::Dirty
def self.property(name, klass = String)
define_property_accessors(name, klass)
# This method will be called once, because of
2011 Apr 30
1
Could not autoload inventory_active_record: uninitialized constant ActiveRecord
Trying to set up the inventory service on puppet 2.6.8, pretty sure
I''ve met all the dependencies but puppetmaster logs
Could not autoload inventory_active_record: uninitialized constant
ActiveRecord
When clients attempt to connect.
local gems:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7, 2.2.3)
actionpack (3.0.7, 2.2.3)
activemodel (3.0.7)
activerecord (3.0.7)
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
Hey guys,
I''m sending USR2 to unicorn after cap deploy, and the old master is
getting replaced by a new master that doesn''t work.
Here are some similar threads I found ...
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000733.html
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000717.html
I''m not using Bundler, and I have working_directory
2010 Apr 02
2
Uncaught exception failed to allocate memory
Hi!
I have a recipe that''s supposed to download ree from a master and
install it. It looks like:
# Install ree
file { "/root/puppet-setup/ruby-
enterprise_1.8.7-2010.01_amd64.deb":
source => "puppet://$servername/files/ruby-
enterprise_1.8.7-2010.01_amd64.deb",
mode => 0644, owner => root, group => root,
notify =>