Displaying 6 results from an estimated 6 matches for "scope_out".
Did you mean:
copy_out
2007 Nov 16
0
problem with scope_out
Hi folks,
I''ve got a plugin question: recently started using scope_out, which I
dig. It broke my specs, though -- now I get an "undefined method
scope_out" error when running specs. I can run script/console and use
the scope_out calls with no problem.
Anything special I need to do to include the scope_out code in the
rspec world? I''ve tr...
2009 Jul 07
1
scope_out plugin
hi
i want to install scope out plugin
script/plugin install http://scope-out-rails.googlecode.com/svn/trunk
but i get the error plugin not found
i use window
what should i do?
thanks in advance
--
Posted via http://www.ruby-forum.com/.
2010 Jan 15
1
Chaining queries in ActiveRecord
Hi all,
Stuck at this problem for several days. Tried to use named_scope,
scope_out, and plugin such as searchlogic, but no result.
The problem is as follows: I have a pic table and tag table, and a
join table called pic_tag (with only pic_id and tag_id) so that I can
associate N pics to M tags. This is the tutorial way to set up a many-
to-many association. I''m trying t...
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
2008 Feb 22
7
undefined local variable or method "acts_as_list"?
...t sure where to find
"acts_as_list" ...
NameError in SpecialsController#printer
undefined local variable or method `acts_as_list'' for #<Class:
0xb7a46994>
RAILS_ROOT: /usr/local/apache2/htdocs/dps
Application Trace | Framework Trace | Full Trace
vendor/plugins/trunk/lib/scope_out.rb:70:in `method_missing''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
base.rb:1532:in `method_missing''
app/models/toner_special.rb:4
app/controllers/specials_controller.rb:6
Here''s the code that''s causing the problem from the app/con...
2007 Oct 18
9
with_scope issue
I have the following code:
class User < ActiveRecord::Base
has_many :requests do
def find_active(options = {})
with_scope :find => { :conditions => ["requests.active = ?",
true] } do
find(:all, options)
end
end
end
end
Executing user.requests.find_active results in the following SQL:
SELECT * FROM requests WHERE (( requests.user_id = 10 ) AND
(