Displaying 5 results from an estimated 5 matches for "scuzzlebutt".
2006 Aug 06
4
DRY Scaffolds
I''ve got 8 scaffolds, each one can be considered an ''item'', such as a
blog, photo, etc. Using login_engine and user_engine, I list all blogs
belonging to a user by saying:
@user=session[:user]
@blogs=@user.blogs.find(:all)
but then let''s say I want to create an option where I want to slice it
differently:
@user=session[:user]
if @someOption ==1
2006 Aug 13
3
Rewrite problem or routing issue?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
2006 Aug 11
1
Polymorphic Not Updating after deleting join
Using the example in the docs if I say
@folder.items
and I list the items, everything lists fine. If I delete a ''linking'', I
still get the same list. Shouldn''t I get one less item even though the
other two db''s haven''t been updated?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 13
1
Rewrite problem?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
2006 Aug 07
0
Overloading ''find''
How would I overload find?
I got some excellent help on mixins for my classes using lib/, but it
doesn''t allow find to be overloaded. I''m testing with the example method
below:
module myModule
def find(*args)
options = extract_options_from_args!(args)
validate_find_options(options)
set_readonly_option!(options)
case args.first