Displaying 20 results from an estimated 10000 matches similar to: "Installation of plugins/gems/mix-ins confusion"
2006 Sep 08
4
Does acts_as_attachment :storage => :db_system work?
I found the post about needing to install acts_as_attachement_1_1_6 if
you are not on edge rails. But I am having trouble getting db_system
storage to work. As far as I can tell in from the database, things are
working, but I don''t see how my model table hooks up with the db_files
table so I am having trouble altering the image_tag from the tutorial
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here:
http://dev.rubyonrails.org/changeset/4010
--
Posted via http://www.ruby-forum.com/.
2005 Nov 15
1
acts_as_paranoid --> undefined method `constrain' for class `Class'
Hi All,
So I thought I had this acts_as_paranoid problem previously and fixed by
going to rails 0.14.2, although I''m not 100% it was the same thing.
I''m now on rails 0.14.3 and I''m getting:
undefined method `constrain'' for class `Class''
for any model that includes acts_as_paranoid. My application trace is below.
Has anyone else got this and know a
2005 Dec 11
4
Problem with acts_as_paranoid: "ArgumentError: Unknown key(s): group"
Here''s the full error:
1) Error:
test_add_message_to_existing_ticket(TicketTest):
ArgumentError: Unknown key(s): group
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/hash/keys.rb:48:in
`assert_valid_keys''
/usr/lib/ruby/gems/1.8/gems/acts_as_paranoid-0.2/lib/acts_as_paranoid.rb:125:in
`validate_find_options''
2006 Mar 14
2
acts_as_paranoid and :include
Will the find from acts_as_paranoid filter down to an :include?
For instance
class parent
acts_as_paranoid
has_many: children
end
and
class child
acts_as_paranoid
belongs_to :parent
end
Then if you
Parent.find(:all, :include => children)
you will get all the children if they are deleted or not. I guess the find
that filters out the deleted_at is null does not filter down to the includes
2006 May 20
1
acts_as_paranoid overrides ActiveRecord::Base??
Guys,
I am trying to figure out what exactly does this line do at the end of
"acts_as_paranoid" plugin?
ActiveRecord::Base.send :include, Caboose::Acts::Paranoid::ActiveRecord
My problem: I have some classes that I use acts_as_paranoid, and others
with tagging support. Classes declared as taggable, throw error, which
appears to be in the acts_as_paranoid version of the
2006 Mar 20
7
strange charecters after redcloth usage
I''m using redcloth on my blog to transform my input into html. Alot of
times if I type "I''ve" I''ll wind up with "I,ve" except that it''s not a
comma but a very similar charecter. This is really killing my rss
feeds. What''s causing this? How do I fix it?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
2
Testing which RuntimeError is raised
I am just starting to use unit testing. Way cool. But I am not finding
very clear docs on assert_raise. I have managed to write a test that
tells me that the destroy I am trying to test fails with a
RuntimeError (as it should). However, I would really like to test that
it rails for the specific reason I have in my model. How can I get
more specific? Am I going to have to create my own exception
2007 Nov 07
11
Links go to ''localhost''
I am using Apache2.2 + Mongrel on my machine.
Now I am accessing it over LAN. When I enter http://mymachinename/myapp
it opens fine but when I click on any link in my rails app, it replaces
mymachinename with localhost (http://localhost/myapp/controller/action)
and thus I am unable to access it from remote location.
2007 Nov 01
9
Mongrel + apache 2.2 + proxy error
Hi,
I have a setup with apache 2.2.6 proxying requests to a cluster of 5
mongrels. Occassionally, I receive the following error in the logs:
[Tue Oct 30 12:00:28 2007] [error] (70007)The timeout specified has
expired: proxy: pass request body failed to 127.0.0.1:8013 (127.0.0.1)
from 213.205.247.171 ()
[Tue Oct 30 12:00:28 2007] [error] [client 213.205.247.171] Handler for
proxy-server returned
2008 May 19
2
god - start command exited with non-zero code = 1
Hi, I''m trying to use god to monitor my mongrels. When they are running
everything looks OK but when a mongrel process dies and god tries to
restart it I get the following error:
command exited with non-zero code = 1
The weird thing is that if I try use the exact same command as god is
using but on the command line then the mongrel starts back up.
I''ve seen this error
2006 Apr 20
8
SCM for a Rails project - Darcs or Subversion?
Hi everyone.
I''m choosing an SCM for my current Rails project.
Up until now, for my other (non-Rails) codings, I used Darcs and liked
it very much. I''d prefer to use Darcs for my Rails development as
well. Looking into the matter, I''m somewhat deterred by the appearant
dominance of Subversion as the SCM tool of choice for Rails hackers.
Is there a technical reason for
2011 Nov 13
2
Rspec not finding my examples
I am following the examples in chapter 2 of "Rails 3 in Action" and
for some reason I have to specify the full path + file name to get my
specs to run. The book and rspec docs led me to believe that I should
be able to just type ''rspec'' and rspec would find any spec files in a
directory called spec. I even tried adding a .rspec file with
"--default_path spec"
2007 Feb 05
3
Kernel panic kickstarting to CentOS 4
I have an older server I am trying to update to CentOS 4.3 but I can't
get to the installer screen because the machine kernel panics when
booted from the install CD. The error message I get is:
Kernel panic - not syncing: include/linux/smp_lock.h:25
spin_unlock(kernel/sched.c:c035) not locked
The boot messages before this point are mainly to do with acpi
including:
acpi_ps_parse_anl
2007 May 11
3
is_active?
Hey all, i''m rather new to rails and was curious if ActiveRecord
implemented anything like is_active where the delete functions would
just mark records as inactive, vs deleting rows. (similar to created_at,
etc). I need a history of transactions, and this is how I would code in
other languages. Any advice? Is there are smarter way to implement this?
Thanks in advance!
--
Posted via
2006 Jul 16
1
Help: migrating data from fixtures
I''m attempting to load some test data into a table , following along
with AWDWR example.
My migration is failing on the user connection.
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`rake_original_const_missing'': uninitialized constant User (NameError)
So in this line from the migration file:
f =
2005 Dec 29
3
Storage for images: Database BLOBs or files?
I can''t decide where store images for my Rails application.
--
Posted via http://www.ruby-forum.com/.
2005 Oct 03
3
WriteBoard for Programmers? (code support)
Anyone think it''d be useful to make a WriteBoard type application
that supported ruby, html, etc. and allowed programmers to
collaborate on writing scripts or just code in general and track each
others changes? Just a thought.
- Jim
2006 Jan 15
4
Redcloth gem properly installed ... still errors
Hi all,
installed redcloth for using the object.attrib.textilize method in a template.
Using 3.0.3 because it supoosedly works the best with rails 1.0.0.
Keep getting the undefined method error. Did the require thingy, but no luck
What would be the most I''m-a-guru place to put the require btw?
Thanx.
Gerard
--
"Who cares if it doesn''t do anything? It was made with
2006 Mar 08
8
New ajaxy CMS on Rails: adminpages
hey, i''ve created a basic content management system using rails and
scriptaculous. I posted a first version last week, but I heavily
extended it since then.
Features:
Pages are arranged in a sortable tree (sortable by drag and drop)
Pages have "nice" URLS (no /index?articleid=97361496 or something)
Cacheing on page basis
every page has a layout with a number of columns
page