Displaying 20 results from an estimated 7000 matches similar to: "ActMethods has been removed from the module tree ???"
2007 Sep 22
4
ActiveResource, find(1) works but no find(:all)
Hi,
I''m on edge and Fuser.find(1) works but Fuser.find(:all) shows the error
[1]. Fuser is declared here [2]. Do you know what''s happening? Thanks.
[1]
ActiveResource::ServerError: Failed with 500 Internal Server Error
from
/.../vendor/rails/activeresource/lib/active_resource/connection.rb:124:in
`handle_response''
from
2006 Oct 13
1
Edge rails, single table inheritance and keeping multiple classes in a single file
So is the official stance as per edge rails that multiple class
definitions must go into separate files? I was trying to use STI with
acts_as_attachment, to have all my attachment classes go into a single
file, for example:
attachment.rb
class Attachment < ActiveRecord::Base
end
class UserPicture < Attachment
belongs_to :user, :foreign_key => ''owner_id''
2007 Sep 28
4
RSpec + EdgeRails on Windows
I recently post on my blog about setting up a Rails environment with RSpec
in Windows, and someone left a comment saying that it doesn''t work in
EdgeRails. I so I played around with it a bit and was able to confirm that
none RSpec appears broken on EdgeRails. I''ll post the various error messages
I received below. I''m not expecting any sort of patch or something for this
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems
sogood but i cant find any docs about it, if someone here using it can
give some references or working examples about the plugin that will be
excellent.
So what you wanna rails today?
--
Posted via http://www.ruby-forum.com/.
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
2009 Aug 16
3
Rails without a database
Hello! I can''t find a way to have rails not use a database. I just
left my database.yml file as it is. When I run my rails application
that has no models, my browser says that it couldn''t connect to a
database. In environment.rb I uncommented the line
config.frameworks -=
[ :active_record, :active_resource, :action_mailer ]
but then Webrick won''t start. Sorry if this has
2010 Jun 17
2
"LoadError: no such file to load -- openssl", following Rails Guides
[With apologies for cross-posting at http://railsforum.com/viewtopic.php?id=39587]
Hi all,
I''m following the edge ''getting started'' guide at
http://guides.rails.info/getting_started.html, running ROR 3. I''m
running Ruby 1.9.2 (as instructed by the guide), installed using RVM.
I get an error when following "4.3 Setting the Application Home
Page".
2007 Apr 08
1
acts_as_attachment save file in folder named after models parent id
This is probably pretty easy, but I''m still a newb as far as ruby and
rails goes.
I am using the acts_as_attachment and would like to know how I go
about setting the path that the file is saved to so that it is saved
in a folder named after the models parent model id
Thanks in advance
Tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Mar 11
2
for a beginner - good rspec examples?
I''m learning to use rspec and I want to see some good examples.
Any recommendations of open source projects that demonstrate the use
of rspec?
So far I''ve found:
1) the Caboose sample app (http://sample.caboo.se/)
2) the Altered Beast forums app (http://beast.caboo.se/forums/1/topics/4650
)
Any others come to mind?
I''m especially interested in seeing
2006 Nov 20
7
Acts as attachement
Hi guys
Question about acts as attachment still getting the following error
undefined method `content_type''
I have set everything up according to the following page however i am
still have trouble
http://weblog.techno-weenie.net/articles/acts_as_attachment
One thing, I have wanted to add this to an existing model in my system.
I have not used the...
script/generate
2008 May 14
7
A copy of XX has been removed from the module tree but is still active!
I have a class in my /lib/ directory called tracker.rb
It''s function is to receive an array of URLs and then perform 4
separate tasks on each URL
Each of the 4 tasks gets it''s own thread.
the class is called from my controller like:
output = Tracker.go([array_of_urls])
Sometimes, when it hits an exception, instead of just dieing
gracefully, my logs repeatedly display:
A
2008 Feb 11
3
Should there be trouble w/has_many_polymorphs in a plugin?
Folks,
As much as I like generators, I''d greatly prefer to just throw my
has_many_polymorphs tagging and commenting engines into projects as
plugins. However, after transplanting my tag.rb and tagging.rb files
into the lib folder of a ''has_many_tags'' plugin and adding the
obligatory plugin requirements (init.rb and an include in
environment.rb), I''m not having
2009 Sep 25
1
generate model error
I''m new on rails, and I encountered a problem when I am doing a
tutorial: that''s a simple application without a database.
First "rails simple_app"
And modify "enviroment.rb"
# Skip frameworks you''re not going to use. To use Rails without a
database,
# you must remove the Active Record framework.
config.frameworks -= [ :active_record,
2009 May 20
1
activeresource-2.3.2 HTTPHeaderSyntaxError
Hi,
I''m upgrading my app from 2.2.2 to 2.3.2 and am having a problem with
ActiveResource.
class FooResource < ActiveResource::Base
self.site = "whatever"
self.element_name = "foo"
end
FooResource.create(:bar => ''baz'')
raises:
Net::HTTPHeaderSyntaxError: wrong Content-Length format
from
2007 Aug 18
0
RSpec and acts_as_attachment
Hey guys,
I''m getting a weird error when trying to test something like the
following. It''s a model that is using acts_as_attachment but the
weird thing is the equivalent Test::Unit case passes. Does anyone
have any ideas?
Best,
Dave
# it was a Test::Unit case first
def test_should_be_invalid_without_file
UserFile.any_instance.expects(:with_image).never
2007 Feb 14
1
cron like behaviour?
Hi
I have previously used railscron for server-side manipulation of the
database but had a heap of trouble working with it.
BackgrounDRB was suggested to me by a friend.
I upload some files via acts_as_attachment and these go lie in a dir
structure that i desire. What I want from the background process is to
periodically (not user initiated) do some file-structure manipulation i.e. I
want to
2006 Oct 03
1
recipe for a myspace type clone?
loginGenrator for accounts and custom views
ferret for search engine
acts_as_attachment with imagick
backroundRb for DB cleanup
anything else one would use for a social networking site? and would the
above plugins be ''good enough'' for a much smaller instance of myspace?
looking to have around 1000 or so members.
--
Posted via http://www.ruby-forum.com/.
2008 Sep 25
1
Will acts_as_paranoid work with attachment_fu?
I''ve got a problem in that users are deleting a paranoid model through
the application, including dependents. Some of these dependents are
paranoid too, but not the attachments. (I''m using DB file storage.) I
need to be able to un-delete these things and I''m now wondering if
acts_as_paranoid will work with models that use attachment_fu? If so, in
what model to I add the
2007 Feb 06
1
Attachment_fu ImageScience FreeImage thumbnail quality
I''ve tried migrating acts_as_attachment to attachment_fu (just to see
if I could replace RMagick with ImageScience+FreeImage), but the
quality of the thumbnails is just horrendous, blurred beyond
recognition (downscaling a 1280x1024 to a few considerably smaller
thumbnails).
Changing attachment_fu to use RMagick again and the thumbnails were
crispy sharp again.
I was wondering
2007 Mar 28
1
attachment_fu & update_attributes... bug?
It seems that attachment_fu is a pretty popular plugin (it''s great), but
I''ve been having a terrible time trying to figure out an issue when
using "update_attributes". I''m storing files on the file system rather
than in a database.
It seems that when "update_attributes" is called with a new file,
upload_data= tries to copy a file that